deubg for db update
Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
+1
-2
@@ -150,7 +150,7 @@ def tube_index_updater(ti_queue):
|
|||||||
tube_index = cur.fetchall()
|
tube_index = cur.fetchall()
|
||||||
cur.close()
|
cur.close()
|
||||||
ti_queue.put(str(tube_index))
|
ti_queue.put(str(tube_index))
|
||||||
# print("Updated tube index with values: "+str(tube_index))
|
print("Updated tube index with values: "+str(tube_index))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
@@ -164,7 +164,6 @@ def tube_index_collector(ti_queue, ti_sender):
|
|||||||
item_old = item
|
item_old = item
|
||||||
print("new item")
|
print("new item")
|
||||||
except Empty:
|
except Empty:
|
||||||
print("emtpy")
|
|
||||||
if item_old is not None:
|
if item_old is not None:
|
||||||
ti_sender.send(item_old)
|
ti_sender.send(item_old)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user