From 1c1ad534a76ea809eb6e21a7483854e35ac927a6 Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 14 Aug 2017 21:12:12 +0200 Subject: [PATCH] FRICK heck h --- model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model.py b/model.py index 3eeb9f5..330c7ed 100644 --- a/model.py +++ b/model.py @@ -62,10 +62,10 @@ class Account(TimestampMixin, RemoteIDMixin): def touch_delete(self): # 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 + if(datetime.now() - self.next_delete > self.policy_delete_every): + self.next_delete = db.func.now() + self.policy_delete_every else: - self.next_delete += self.delete_every + self.next_delete += self.policy_delete_every def touch_refresh(self): self.last_refresh = db.func.now()