mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-24 09:38:35 +02:00
Merge pull request #226
fix(common:tasks): reset_demo_data not running via cron
This commit is contained in:
@@ -44,9 +44,9 @@ async def remove_expired_sessions(timestamp=None):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@app.periodic(cron="0 6 * * *")
|
@app.periodic(cron="0 8 * * *")
|
||||||
@app.task(name="reset_demo_data")
|
@app.task(name="reset_demo_data")
|
||||||
def reset_demo_data():
|
def reset_demo_data(timestamp=None):
|
||||||
"""
|
"""
|
||||||
Wipes the database and loads fresh demo data if DEMO mode is active.
|
Wipes the database and loads fresh demo data if DEMO mode is active.
|
||||||
Runs daily at 6:00 AM.
|
Runs daily at 6:00 AM.
|
||||||
|
|||||||
Reference in New Issue
Block a user