Spaces:
Running
Running
more ref, ci, debug
Browse files
app.py
CHANGED
@@ -224,7 +224,7 @@ def update_board():
|
|
224 |
if len(data_list)>1:
|
225 |
data_list.pop(0)
|
226 |
|
227 |
-
if len(data_list)>
|
228 |
with open("genned.json", "w") as f:
|
229 |
json.dump(data_list, f)
|
230 |
|
@@ -247,7 +247,7 @@ if __name__ == "__main__":
|
|
247 |
|
248 |
scheduler = BackgroundScheduler()
|
249 |
# update_board()
|
250 |
-
scheduler.add_job(update_board, "interval", minutes=
|
251 |
scheduler.start()
|
252 |
|
253 |
demo_app = build_demo()
|
|
|
224 |
if len(data_list)>1:
|
225 |
data_list.pop(0)
|
226 |
|
227 |
+
if len(data_list)>4:
|
228 |
with open("genned.json", "w") as f:
|
229 |
json.dump(data_list, f)
|
230 |
|
|
|
247 |
|
248 |
scheduler = BackgroundScheduler()
|
249 |
# update_board()
|
250 |
+
scheduler.add_job(update_board, "interval", minutes=10)
|
251 |
scheduler.start()
|
252 |
|
253 |
demo_app = build_demo()
|