aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-12-15 23:30:01 -0800
committerGitHub <noreply@github.com>2023-12-15 23:30:01 -0800
commit62ef58169a80e2f0a4183721034bff82c9db2e29 (patch)
treed7bc5ac6c7f922eeee8ec77b9ea2855503a0ef1d /api
parent4be8da0a6550d0486ff6ad1266736994d36bdb1d (diff)
remove affiliation when auth=server
Diffstat (limited to 'api')
-rw-r--r--api/app.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/app.py b/api/app.py
index d0c2f48..ea9021d 100644
--- a/api/app.py
+++ b/api/app.py
@@ -158,6 +158,7 @@ def generate_organization_captcha(org):
question_data = [{"image": question[3], "name": question[1], "affiliation": question[2], "id": question[0] } for question in correct_answers + random_answers]
if create_session:
server = create_database_connection()
+ del question_data["affiliation"]
session_id = secrets.token_urlsafe(16)
solutions = []
for question in question_data:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage