From 701da59c69e146b367bf494d2c23498902f3ad98 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 6 Apr 2024 04:40:36 +0200 Subject: [PATCH] fix 500 error in localhost --- files/routes/oauth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/oauth.py b/files/routes/oauth.py index 2ef87687c..9162c6aeb 100644 --- a/files/routes/oauth.py +++ b/files/routes/oauth.py @@ -71,7 +71,8 @@ def request_api_keys(v): g.db.add(new_app) body = f"@{v.username} has requested API keys for `{request.values.get('name')}`. You can approve or deny the request [here](/admin/apps)." - send_repeatable_notification(AEVANN_ID, body) + notified_user_id = AEVANN_ID if AEVANN_ID else 5 + send_repeatable_notification(notified_user_id, body) return {"message": "API keys requested successfully!"}