forked from rDrama/rDrama
fix localhost being impossible to use
parent
0b4582f2ae
commit
b42b20d5bf
|
@ -44,7 +44,7 @@ def cron_fn(every_5m, every_1d):
|
|||
_grant_one_year_badges()
|
||||
_grant_two_year_badges()
|
||||
|
||||
if every_1d or not cache.get('stats'):
|
||||
if every_1d or (not cache.get('stats') and not IS_LOCALHOST):
|
||||
g.db.commit()
|
||||
|
||||
_generate_emojis_zip()
|
||||
|
|
Loading…
Reference in New Issue