From 93ab3294ce679e8bd75c876c2269578fac74a763 Mon Sep 17 00:00:00 2001 From: codl Date: Sun, 3 Sep 2017 01:23:54 +0200 Subject: [PATCH] oops --- routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes.py b/routes.py index e5089e6..ecd4817 100644 --- a/routes.py +++ b/routes.py @@ -200,7 +200,8 @@ def enable(): else "" } Go ahead? """) - if (g.viewer.account.next_delete < + if (not g.viewer.account.last_delete or + g.viewer.account.last_delete < datetime.now(timezone.utc) - timedelta(days=365)): return render_template( 'warn.html',