super mario kart for the super nintendo entertainment system

This commit is contained in:
codl 2017-08-14 21:01:34 +02:00
parent 1cd5b8fa47
commit 6d3a6ae936
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,9 @@ class Account(TimestampMixin, RemoteIDMixin):
self.last_fetch = db.func.now()
def touch_delete(self):
if(datetime.now() - self.next_delete > 3 * self.delete_every):
# if it's been more than 1 delete cycle ago that we've deleted a post,
# reset next_delete to be 1 cycle away
if(datetime.now() - self.next_delete > self.delete_every):
self.next_delete = db.func.now() + self.delete_every
else:
self.next_delete += self.delete_every