diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-01-22 01:42:19 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-01-22 01:42:19 -0800 |
| commit | 9192ed50f076d5a9ae9e85980099a1a01c725c9d (patch) | |
| tree | b1fb2c8e6dab3d72eb45353d1ef5d686319139e5 /api | |
| parent | 3486559ef10cde2c775c39fd6019ca1e7498be53 (diff) | |
change keyword organization to affiliation
Diffstat (limited to 'api')
| -rw-r--r-- | api/app.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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] |
