diff options
Diffstat (limited to 'pgcommitfest/commitfest/views.py')
-rw-r--r-- | pgcommitfest/commitfest/views.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pgcommitfest/commitfest/views.py b/pgcommitfest/commitfest/views.py index 6a1f294..40ae3c5 100644 --- a/pgcommitfest/commitfest/views.py +++ b/pgcommitfest/commitfest/views.py @@ -86,6 +86,10 @@ def redir(request, what, end): cfs = list(CommitFest.objects.filter(status=CommitFest.STATUS_OPEN)) elif what == 'inprogress': cfs = list(CommitFest.objects.filter(status=CommitFest.STATUS_INPROGRESS)) + elif what == 'current': + cfs = list(CommitFest.objects.filter(status=CommitFest.STATUS_INPROGRESS)) + if len(cfs) == 0: + cfs = list(CommitFest.objects.filter(status=CommitFest.STATUS_OPEN)) else: raise Http404() |