FRICK heck h
This commit is contained in:
parent
6d3a6ae936
commit
1c1ad534a7
6
model.py
6
model.py
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue