Browse Source

use Flask debug flag

pull/1/head
namasikanam 3 years ago
parent
commit
58c86bbe2d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app.py

+ 1
- 1
app.py View File

@ -114,7 +114,7 @@ def choose_new_next(min_like_num=10):
scheduler = BackgroundScheduler()
for d in range(5, 15):
for m in range(0, 24 * 60, C.period):
scheduler.add_job(func=choose_new_next, trigger='date', run_date=datetime(2021, 11, d, m // 60, m % 60), args=[1] if C.debug else [])
scheduler.add_job(func=choose_new_next, trigger='date', run_date=datetime(2021, 11, d, m // 60, m % 60), args=[1] if app.debug else [])
scheduler.start()
# Shut down the scheduler when exiting the app

Loading…
Cancel
Save