aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-10-14 00:33:51 -0700
committerPinapelz <yukais@pinapelz.com>2024-10-14 00:33:51 -0700
commit88afabfd74b3b6e5ab0c34bf66bcfd0609aa8066 (patch)
treed769e39109d95216956b9cf84692c4dce8e44452 /api
parent6ced144db0441133701cb1982de0137a82a14698 (diff)
show received org text for when org is not found
Diffstat (limited to 'api')
-rw-r--r--api/app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/app.py b/api/app.py
index 090525d..0aa0e32 100644
--- a/api/app.py
+++ b/api/app.py
@@ -153,7 +153,7 @@ def generate_organization_captcha(org):
if server.check_health() is False:
return jsonify({"error": "Database Connection Failed. Dynamic Affiliation Endpoint requires a PostgreSQL Connection"}), 500
if server.check_row_exists("vtuber_data", "affiliation", org) is False:
- return jsonify({"error": "Organization not found in Database"}), 404
+ return jsonify({"error": "Organization " + org + " was not found in the database" }), 404
correct_answers= server.get_random_row('vtuber_data', 5, "affiliation = '"+org+"'")
random_answers = server.get_random_row('vtuber_data', 11)
server.close_connection()
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage