FRICK heck h

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

View File

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