-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create contest monitoring page #359
base: master
Are you sure you want to change the base?
Conversation
-Added q_size and q_size_global to General info.
…stion to general info
* Number of submission of every kind
8914013
to
979449f
Compare
oioioi/statistics/templates/statistics/_problems_and_tests_info.html
Outdated
Show resolved
Hide resolved
oioioi/statistics/templates/statistics/_problems_and_tests_info.html
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
def monitoring_view(request): | ||
cur_time = UTC.localize(datetime.now()) | ||
r_times = [] | ||
for round_, rt in rounds_times(request, request.contest).items(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks fishy, especially [:-7]
you could try using huminize module and naturaldelta/precisedelta
https://python-humanize.readthedocs.io/en/latest/time/#humanize.time.precisedelta
maybe this logic can be moved to template + extra tag that present timedelta between end & cur_time
(something similar to https://github.com/sio2project/oioioi/blob/master/oioioi/base/templatetags/format_data_range.py)
6600e30
to
7ee1ba6
Compare
7ee1ba6
to
c259d1c
Compare
Add monitoring page for contest Jury, containing information such as rounds: start and end times, published files, number of users with specific permissions, number of tasks in queue and information about unaswered questions.