We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23d45c0 commit f43f201Copy full SHA for f43f201
server.py
@@ -139,9 +139,6 @@ def announce():
139
140
return "Thanks, your request has been filed.", 202
141
142
-sched.add_job(lambda: serverList.purgeOld(), "interval",
143
- seconds=60, coalesce=True, max_instances=1)
144
-
145
# Utilities
146
147
# Returns ping time in seconds (up), False (down), or None (error).
@@ -401,6 +398,9 @@ def update(self, server):
401
398
402
399
serverList = ServerList()
403
400
+sched.add_job(lambda: serverList.purgeOld(), "interval",
+ seconds=60, coalesce=True, max_instances=1)
+
404
if __name__ == "__main__":
405
app.run(host = app.config["HOST"], port = app.config["PORT"])
406
0 commit comments