Skip to content

Commit e636482

Browse files
committed
move status for gatekeep response to route
1 parent 17b0773 commit e636482

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

conditional/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,7 @@ def gatekeep(username):
165165
if token != app.config["VOTE_TOKEN"]:
166166
return "Users cannot access this page", 403
167167

168-
return gatekeep_status(username)
169-
170-
168+
return gatekeep_status(username), 200
171169

172170

173171
@app.errorhandler(404)

conditional/util/member.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,4 +238,4 @@ def gatekeep_status(username):
238238
"h_meetings": h_meetings,
239239
"c_meetings": d_meetings,
240240
"t_seminars": t_seminars,
241-
}, 200
241+
}

0 commit comments

Comments
 (0)