set global var

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 16:05:22 +01:00
parent cef018cdbf
commit bc1390ceca
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,8 @@ def mqtt_publisher():
sys.exit()
if __name__ == "__main__":
global result
result = None
tube_index_updater_thread = Process(target=update_tube_index)
tube_index_updater_thread.start()
flask_thread = Process(target=flask_api)