mirror of
https://github.com/hubHarmony/servii-backend.git
synced 2024-11-17 21:40:31 +00:00
[~] Tiny coding style update
This commit is contained in:
parent
29b42be411
commit
874236d09e
4
app.py
4
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()
|
||||
|
@ -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.")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user