call the update function once when script starts

This commit is contained in:
Hristo
2024-02-05 21:37:49 +02:00
parent 9baf13af8b
commit b8c57041af

View File

@@ -623,6 +623,7 @@ if __name__ == '__main__':
thread1.start() thread1.start()
if config.update: if config.update:
update_status()
# Start the update_status function in a new thread # Start the update_status function in a new thread
thread2 = threading.Thread(target=update_status) thread2 = threading.Thread(target=update_status)
thread2.daemon = True # Set the daemon attribute to True thread2.daemon = True # Set the daemon attribute to True