Skip to content
Permalink
Browse files

Fix weasyl.cron for Arrow 0.14.5

I think this *was* intended to be a replacement and not a shift… which is why Arrow deprecated that bad API.
  • Loading branch information...
charmander committed Oct 1, 2019
1 parent bce999c commit adb44f6d53767bc66659ac064b3721addff7e4a4
Showing with 1 addition and 1 deletion.
  1. +1 −1 weasyl/cron.py
@@ -20,7 +20,7 @@ def run_periodic_tasks():
if not locked:
return
last_run = arrow.get(db.scalar("SELECT last_run FROM cron_runs"))
if not last_run or now < last_run.replace(seconds=59):
if not last_run or now < last_run.replace(second=59):
return

# Recache the latest submissions

0 comments on commit adb44f6

Please sign in to comment.
You can’t perform that action at this time.