Permalink
Browse files

Merge pull request #303 from Weasyl/logincreate-two-day-record-purge

Purge logincreate records after two days
  • Loading branch information...
charmander committed Jan 11, 2018
2 parents b9bdbe7 + d5ebdbe commit 8881a8106b23003b570d9403a2757928fb945363
Showing with 1 addition and 1 deletion.
  1. +1 −1 weasyl/cron.py
View
@@ -61,7 +61,7 @@ def run_periodic_tasks():
db.execute("""
DELETE FROM logincreate
WHERE unixtime < %(time)s
""", time=now - (86400 * 7))
""", time=now - (86400 * 2))
log.msg('cleared stale account creation records')
db.execute("UPDATE cron_runs SET last_run = %(now)s", now=now.naive)

0 comments on commit 8881a81

Please sign in to comment.