- class oioioi.dashboard.contest_dashboard._ContestDashboardEntry(view, condition)¶
- oioioi.dashboard.contest_dashboard.register_contest_dashboard_view(order=sys.maxsize, condition=None)¶
Decorator for a view, which registers it as a contest dashboard.
A view registered this way can be shown as the main page of the contest. If multiple views are registered, one with the lowest
orderfor which the
conditionholds true is selected.
order (int) – value determining the order in which the dashboard is selected
oioioi.base.permissions.Condition) – decides if a dashboard can be selected
Unregisters a contest dashboard view.
Does nothing if not found.
view – the dashboard view to unregister