|
1 |
| -from django.conf.urls import url |
| 1 | +from django.urls import re_path |
2 | 2 |
|
3 | 3 | from . import views
|
4 | 4 |
|
5 | 5 | urlpatterns = [
|
6 |
| - url( |
| 6 | + re_path( |
7 | 7 | r"^challenge/(?P<challenge_pk>[0-9]+)/team/count$",
|
8 | 8 | views.get_participant_team_count,
|
9 | 9 | name="get_participant_team_count",
|
10 | 10 | ),
|
11 |
| - url( |
| 11 | + re_path( |
12 | 12 | r"^challenge/(?P<challenge_pk>[0-9]+)/participant/count$",
|
13 | 13 | views.get_participant_count,
|
14 | 14 | name="get_participant_count",
|
15 | 15 | ),
|
16 |
| - url( |
| 16 | + re_path( |
17 | 17 | r"^challenge/(?P<challenge_pk>[0-9]+)/submission/(?P<duration>[A-Za-z]+)/count$",
|
18 | 18 | views.get_submission_count,
|
19 | 19 | name="get_submission_count",
|
20 | 20 | ),
|
21 |
| - url( |
| 21 | + re_path( |
22 | 22 | r"^challenge/(?P<challenge_pk>[0-9]+)/challenge_phase/(?P<challenge_phase_pk>[0-9]+)/analytics$",
|
23 | 23 | views.get_challenge_phase_submission_analysis,
|
24 | 24 | name="get_challenge_phase_submission_analysis",
|
25 | 25 | ),
|
26 |
| - url( |
| 26 | + re_path( |
27 | 27 | r"^challenge/(?P<challenge_pk>[0-9]+)/challenge_phase/(?P<challenge_phase_pk>[0-9]+)/count$",
|
28 | 28 | views.get_challenge_phase_submission_count_by_team,
|
29 | 29 | name="get_challenge_phase_submission_count_by_team",
|
30 | 30 | ),
|
31 |
| - url( |
| 31 | + re_path( |
32 | 32 | r"^challenge/(?P<challenge_pk>[0-9]+)/challenge_phase/"
|
33 | 33 | r"(?P<challenge_phase_pk>[0-9]+)/last_submission/(?P<submission_by>[A-Za-z_]+)$",
|
34 | 34 | views.get_last_submission_time,
|
35 | 35 | name="get_last_submission_time",
|
36 | 36 | ),
|
37 |
| - url( |
| 37 | + re_path( |
38 | 38 | r"^challenge/(?P<challenge_pk>[0-9]+)/challenge_phase/"
|
39 | 39 | r"(?P<challenge_phase_pk>[0-9]+)/last_submission_datetime_analysis/$",
|
40 | 40 | views.get_last_submission_datetime_analysis,
|
41 | 41 | name="get_last_submission_datetime_analysis",
|
42 | 42 | ),
|
43 |
| - url( |
| 43 | + re_path( |
44 | 44 | r"^challenges/(?P<challenge_pk>[0-9]+)/download_all_participants/$",
|
45 | 45 | views.download_all_participants,
|
46 | 46 | name="download_all_participants",
|
|
0 commit comments