From b067fb5df2553c559924254b818ec98f297a8ed6 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Mon, 10 Mar 2025 13:12:11 +0100 Subject: [PATCH] notify: remove a lot of leaky print statements --- machines/gerd/services/notify/app.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/machines/gerd/services/notify/app.py b/machines/gerd/services/notify/app.py index 7a23c0f..4a478e3 100644 --- a/machines/gerd/services/notify/app.py +++ b/machines/gerd/services/notify/app.py @@ -93,7 +93,6 @@ def index(): # handle post stuff if request.method == "POST": action = request.form.get("action", "").lower() - print("Action", action) if "token" in action: generate_token_for_user(username) elif "room id" in action: @@ -179,7 +178,6 @@ def send_notification(): body = request.args.get("body", request.get_data().decode("utf-8")) if not body: body = " " - print("BODY", body) token = request.authorization.token or request.authorization.password if not token: return ( @@ -199,7 +197,6 @@ def send_notification(): con = get_db() cur = con.cursor() - print(token) res = cur.execute( "SELECT username FROM tokens WHERE token = ?", (token,) ).fetchone() @@ -212,8 +209,6 @@ def send_notification(): if ntype not in ["matrix", "mail"]: return ("Invalid type, only matrix or mail allowed", 400) - print(ntype, username, token) - apobj = apprise.Apprise() if ntype == "matrix": # try to get a room_id @@ -225,8 +220,6 @@ def send_notification(): if res: room_id = res[0] - print(room_id) - if not room_id: return ("No room_id specified, and no default saved", 400)