aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-01-22 01:42:19 -0800
committerPinapelz <yukais@pinapelz.com>2024-01-22 01:42:19 -0800
commit9192ed50f076d5a9ae9e85980099a1a01c725c9d (patch)
treeb1fb2c8e6dab3d72eb45353d1ef5d686319139e5 /api
parent3486559ef10cde2c775c39fd6019ca1e7498be53 (diff)
change keyword organization to affiliation
Diffstat (limited to 'api')
-rw-r--r--api/app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/app.py b/api/app.py
index ae469e3..01febc2 100644
--- a/api/app.py
+++ b/api/app.py
@@ -150,9 +150,9 @@ def generate_organization_captcha(org):
create_session = True
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", "organization", org) is False:
+ if server.check_row_exists("vtuber_data", "affiliation", org) is False:
return jsonify({"error": "Organization not found in Database"}), 404
- correct_answers= server.get_random_row('vtuber_data', 5, "organization = '"+org+"'")
+ correct_answers= server.get_random_row('vtuber_data', 5, "affiliation = '"+org+"'")
random_answers = server.get_random_row('vtuber_data', 11)
server.close_connection()
question_data = [{"image": question[3], "name": question[1], "affiliation": question[2], "id": question[0] } for question in correct_answers + random_answers]
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage