Skip to content

Commit

Permalink
Don't treat null last_indexed as old
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Nov 16, 2019
1 parent a898f47 commit 5df86da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion netkan/netkan/auto_freezer.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def _too_old(self, ident, update_cutoff):
last_indexed = getattr(status, 'last_indexed', None)
if not last_indexed:
# Never indexed since the start of status tracking = 4+ years old
return True
# ... except for mods that were updated by the old webhooks :(
return False
else:
return last_indexed < update_cutoff

Expand Down

0 comments on commit 5df86da

Please sign in to comment.