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.")