Skip to content

Commit b65194e

Browse files
authored
Merge pull request gitcoinco#9353 from gitcoinco/gitc-301
chore: order upcoming by starting date
2 parents 86af276 + 9860e23 commit b65194e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

app/app/urls.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -367,15 +367,15 @@
367367
name='hackathon_project_page'
368368
),
369369
path('modal/save_project/', dashboard.views.hackathon_save_project, name='hackathon_save_project'),
370-
# TODO: revisit if we need to keep these urls for legacy links
371-
# re_path(r'^hackathon/?$/?', dashboard.views.hackathon, name='hackathon_idx'),
372-
# re_path(r'^hackathon/(.*)?$', dashboard.views.hackathon, name='hackathon_idx2'),
370+
373371
url(r'^hackathon/<str:hackathon>/?$/?', dashboard.views.hackathon, name='hackathon'),
374372
url(r'^hackathon/<str:hackathon>/<str:panel>/?$/?', dashboard.views.hackathon, name='hackathon'),
375-
path('hackathon-list/', dashboard.views.get_hackathons, name='get_hackathons'),
376-
path('hackathon-list', dashboard.views.get_hackathons, name='get_hackathons2'),
377-
re_path(r'^hackathon/?$', dashboard.views.get_hackathons, name='get_hackathons3'),
378-
re_path(r'^hackathons/?$', dashboard.views.get_hackathons, name='get_hackathons4'),
373+
374+
# list all hackathons
375+
re_path(r'^hackathon-list/?$', dashboard.views.get_hackathons, name='get_hackathons'),
376+
re_path(r'^hackathon/?$', dashboard.views.get_hackathons, name='get_hackathons'),
377+
re_path(r'^hackathons/?$', dashboard.views.get_hackathons, name='get_hackathons'),
378+
379379
url(r'^register_hackathon/', dashboard.views.hackathon_registration, name='hackathon_registration'),
380380
path('api/v0.1/hackathon/<str:hackathon>/save/', dashboard.views.save_hackathon, name='save_hackathon'),
381381
path('api/v1/hackathon/<str:hackathon>/prizes', dashboard.views.hackathon_prizes, name='hackathon_prizes_api'),

app/perftools/management/commands/create_page_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def create_hackathon_list_page_cache():
291291
view = 'hackathons'
292292
keyword = 'hackathons'
293293
current_hackathon_events = HackathonEvent.objects.current().filter(visible=True).order_by('-start_date')
294-
upcoming_hackathon_events = HackathonEvent.objects.upcoming().filter(visible=True).order_by('-start_date')
294+
upcoming_hackathon_events = HackathonEvent.objects.upcoming().filter(visible=True).order_by('start_date')
295295
finished_hackathon_events = HackathonEvent.objects.finished().filter(visible=True).order_by('-start_date')
296296

297297
events = []

0 commit comments

Comments
 (0)