Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Commit 02ffb28

Browse files
Merge pull request #243 from codewizardshq/backend-date-hotfix
comment out the timegate in back end vote.py
2 parents 87ebe6f + 2b41ed9 commit 02ffb28

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

CodeChallenge/api/vote.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
bp = Blueprint("voteapi", __name__, url_prefix="/api/v1/vote")
1515

1616

17-
@bp.before_request
18-
def time_gate():
19-
if not core.challenge_ended() or current_app.config.get("VOTING_DISABLED", False):
20-
r = jsonify(
21-
status="error", reason="voting unavailable until code challenge ends"
22-
)
23-
r.status_code = 403
24-
abort(r)
17+
# @bp.before_request
18+
# def time_gate():
19+
# if not core.challenge_ended() or current_app.config.get("VOTING_DISABLED", False):
20+
# r = jsonify(
21+
# status="error", reason="voting unavailable until code challenge ends"
22+
# )
23+
# r.status_code = 403
24+
# abort(r)
2525

2626

2727
@bp.route("/check", methods=["GET"])

0 commit comments

Comments
 (0)