forked from rDrama/rDrama
1
0
Fork 0

try moving _award_timers_task to every_1h

master
Aevann 2023-07-02 22:50:16 +03:00
parent 331b35a3f9
commit dd37775c6b
1 changed files with 4 additions and 3 deletions

View File

@ -34,9 +34,6 @@ def cron(every_5m, every_1h, every_1d, every_1mo):
#I put commit under each task to release database locks and prevent main flask app crashing
if every_5m:
_award_timers_task()
g.db.commit()
if FEATURES['GAMBLING']:
check_if_end_lottery_task()
g.db.commit()
@ -45,6 +42,10 @@ def cron(every_5m, every_1h, every_1d, every_1mo):
g.db.commit()
#offsitementions.offsite_mentions_task(cache)
if every_1h:
_award_timers_task()
g.db.commit()
if every_1d:
stats.generate_charts_task(SITE)
g.db.commit()