Check bot award timers more frequently.

Also: change to docker-compose.yml is to see if it'll fix the Github
tests failing. Lumped in here because it's too dumb to make a commit
for by itself.
master
Snakes 2022-06-27 02:15:35 -04:00
parent 197637b872
commit d68f2a604a
2 changed files with 4 additions and 7 deletions

View File

@ -27,7 +27,7 @@ services:
postgres:
image: postgres:12.3
command: ["postgres", "-c", "log_statement=all"]
#command: ["postgres", "-c", "log_statement=all"]
# uncomment this if u wanna output all SQL queries to the console
volumes:
- "./schema.sql:/docker-entrypoint-initdb.d/00-schema.sql"

View File

@ -21,20 +21,17 @@ def cron(every_5m, every_1h, every_1d, every_1mo):
if every_5m:
lottery.check_if_end_lottery_task()
offsitementions.offsite_mentions_task()
g.db.commit()
if every_1h:
pass
awards.award_timers_bots_task()
if every_1d:
stats.generate_charts_task(const.SITE)
route_static.stats_cached()
awards.award_timers_bots_task()
sub_inactive_purge_task()
g.db.commit()
if every_1mo:
give_monthly_marseybux_task()
g.db.commit()
g.db.close()
g.db.commit()
g.db.close()