diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-10-14 00:33:51 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-10-14 00:33:51 -0700 |
| commit | 88afabfd74b3b6e5ab0c34bf66bcfd0609aa8066 (patch) | |
| tree | d769e39109d95216956b9cf84692c4dce8e44452 /api | |
| parent | 6ced144db0441133701cb1982de0137a82a14698 (diff) | |
show received org text for when org is not found
Diffstat (limited to 'api')
| -rw-r--r-- | api/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |
