Commit 9805449f by Corey Koval

Fixed the things I made worse

parent 7b6dda83
...@@ -916,7 +916,7 @@ def add_receiver(receiver_url): ...@@ -916,7 +916,7 @@ def add_receiver(receiver_url):
print("Duplicate receiver, ignoring.") print("Duplicate receiver, ignoring.")
else: else:
receivers.append(receiver(receiver_url)) receivers.append(receiver(receiver_url))
print(f"Receivers list is now {len(receivers)} long.") # print(f"Receivers list is now {len(receivers)} long.")
new_rx = receivers[-1].receiver_dict() new_rx = receivers[-1].receiver_dict()
to_table = [new_rx['station_id'], new_rx['station_url'], new_rx['auto'], to_table = [new_rx['station_id'], new_rx['station_url'], new_rx['auto'],
new_rx['mobile'],new_rx['single'], new_rx['latitude'], new_rx['longitude']] new_rx['mobile'],new_rx['single'], new_rx['latitude'], new_rx['longitude']]
...@@ -980,7 +980,10 @@ def update_rx_table(): ...@@ -980,7 +980,10 @@ def update_rx_table():
longitude=? longitude=?
WHERE station_id = ?''' WHERE station_id = ?'''
DATABASE_EDIT_Q.put((command, to_table)) DATABASE_EDIT_Q.put((command, to_table))
DATABASE_RETURN.get(timeout=1) try:
DATABASE_RETURN.get(timeout=1)
except:
pass
DATABASE_EDIT_Q.put(("done", None)) DATABASE_EDIT_Q.put(("done", None))
# conn.commit() # conn.commit()
# conn.close() # conn.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment