fix urls.py

This commit is contained in:
Dinh 2020-01-26 17:32:40 -06:00
parent 954597cd96
commit 15b0e06a4f
2 changed files with 2 additions and 1 deletions

View file

@ -553,3 +553,4 @@ INFO 2020-01-26 05:15:35,436 judgehandler judge1: 5 test case(s) completed on: 4
INFO 2020-01-26 05:15:35,531 judgehandler judge1: 3 test case(s) completed on: 42 INFO 2020-01-26 05:15:35,531 judgehandler judge1: 3 test case(s) completed on: 42
INFO 2020-01-26 05:15:35,729 judgehandler judge1: Grading has ended on: 42 INFO 2020-01-26 05:15:35,729 judgehandler judge1: Grading has ended on: 42
INFO 2020-01-26 05:15:35,729 judgelist Judge available after grading 42: judge1 INFO 2020-01-26 05:15:35,729 judgelist Judge available after grading 42: judge1
INFO 2020-01-26 05:28:39,295 judgehandler Judge disconnected from: ('127.0.0.1', 34940)

View file

@ -163,7 +163,7 @@ urlpatterns = [
url(r'^users/', include([ url(r'^users/', include([
url(r'^$', user.users, name='user_list'), url(r'^$', user.users, name='user_list'),
url(r'^(?P<page>\d+)$', lambda request, page: url(r'^(?P<page>\d+)$', lambda request, page:
uncommitted HttpResponsePermanentRedirect('%s?page=%s' % (reverse('user_list'), page))), HttpResponsePermanentRedirect('%s?page=%s' % (reverse('user_list'), page))),
url(r'^find$', user.user_ranking_redirect, name='user_ranking_redirect'), url(r'^find$', user.user_ranking_redirect, name='user_ranking_redirect'),
])), ])),