[~] Tiny coding style update

This commit is contained in:
Charles Le Maux 2024-09-20 11:38:54 +02:00
parent 29b42be411
commit 874236d09e
2 changed files with 4 additions and 3 deletions

4
app.py
View File

@ -189,9 +189,9 @@ app.register_blueprint(apiBP)
if __name__ == '__main__': if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Background Scheduler") parser = argparse.ArgumentParser(description="Background Scheduler")
(parser.add_argument (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 (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() args = parser.parse_args()
scheduler = BackgroundScheduler() scheduler = BackgroundScheduler()

View File

@ -183,7 +183,8 @@ def set_servers_not_running():
for server_doc in server_docs: for server_doc in server_docs:
server_id = server_doc.id 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.") print("All servers have been set to not running.")