Skip to content

Commit

Permalink
change: fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
meua committed Dec 29, 2023
1 parent a7b97c8 commit 75c7650
Show file tree
Hide file tree
Showing 17 changed files with 624 additions and 1,313 deletions.
13 changes: 7 additions & 6 deletions apps/challenges/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4448,13 +4448,14 @@ def create_or_update_challenge(request, challenge_host_team_pk):

challenge_pk = request.data.get("id")
if not challenge_pk:
request.data["is_docker_based"] = True
request.data["approved_by_admin"] = True
request.data["enable_forum"] = True
request.data["is_registration_open"] = True
request.data["anonymous_leaderboard"] = True
data = request.data.copy()
data["is_docker_based"] = True
data["approved_by_admin"] = True
data["enable_forum"] = True
data["is_registration_open"] = True
data["anonymous_leaderboard"] = False
serializer = ZipChallengeSerializer(
data=request.data,
data=data,
context={
"challenge_host_team": challenge_host_team,
"request": request,
Expand Down
2 changes: 1 addition & 1 deletion evalai/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
),
url(
r"^api/auth/email-confirmed/$",
RedirectView.as_view(url="http://" + redirectUrl + "/auth/verifyEmail"),
RedirectView.as_view(url="https://" + redirectUrl + "/auth/verifyEmail"),
# TemplateView.as_view(template_name="account/email_confirm.html"),
name="email_confirm_done",
),
Expand Down
Loading

0 comments on commit 75c7650

Please sign in to comment.