From 874236d09ee0ba0fe7cdb5c316f73f6c1dff44b7 Mon Sep 17 00:00:00 2001 From: Charles Le Maux Date: Fri, 20 Sep 2024 11:38:54 +0200 Subject: [PATCH] [~] Tiny coding style update --- app.py | 4 ++-- firebase_manager.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 4ad3101..6861aca 100644 --- a/app.py +++ b/app.py @@ -189,9 +189,9 @@ app.register_blueprint(apiBP) if __name__ == '__main__': parser = argparse.ArgumentParser(description="Background Scheduler") (parser.add_argument - ('--servers-interval', type=int, default=10, help="Interval to check for idle servers. (in minutes)")) + ('--servers-interval', type=int, default=10, help="Interval to check for idle servers. (minutes)")) (parser.add_argument - ('--modpacks-interval', type=int, default=48, help="Interval to check for modpack updates. (in hours)")) + ('--modpacks-interval', type=int, default=48, help="Interval to check for modpack updates. (hours)")) args = parser.parse_args() scheduler = BackgroundScheduler() diff --git a/firebase_manager.py b/firebase_manager.py index 929634b..043d49b 100644 --- a/firebase_manager.py +++ b/firebase_manager.py @@ -183,7 +183,8 @@ def set_servers_not_running(): for server_doc in server_docs: server_id = server_doc.id - firestore_database.collection(u'users').document(user_id).collection(u'servers').document(server_id).update({u'running': False}) + (firestore_database.collection(u'users') + .document(user_id).collection(u'servers').document(server_id).update({u'running': False})) print("All servers have been set to not running.")