apsys commited on
Commit
14cd170
1 Parent(s): 1553f48

more ref, ci, debug

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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)>3:
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=1)
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()