From ab729dc4d5db674f953ef18826857e1d771ceccc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 24 Jul 2021 22:55:55 +0200 Subject: [PATCH] df --- drama/routes/users.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drama/routes/users.py b/drama/routes/users.py index 4b325523a6..3255daa1e3 100644 --- a/drama/routes/users.py +++ b/drama/routes/users.py @@ -23,7 +23,7 @@ beams_client = PushNotifications( @auth_required def suicide(v, username): t = int(time.time()) - if t - v.suicide_utc < 86400: return "", 204 + #if t - v.suicide_utc < 86400: return "", 204 user = get_user(username) suicide = f"""Hi there, @@ -43,7 +43,9 @@ def suicide(v, username): It may not feel like it, but you have options. There are people available to listen to you, and ways to move forward. Your fellow dramatards care about you and there are people who want to help.""" + print(1) send_notification(1046, user, suicide) + print(2) v.suicide_utc = t g.db.add(v) return "", 204