supercontest.views.statistics
The blueprint for the statistical views.
Module Attributes
The blueprint for the statistical views. |
|
Which URL path params are required for this view. |
Functions
Stats view. |
|
Wrapper for common defaults call. |
|
Wrapper for common preprocessors call. |
- supercontest.views.statistics.statistics() str
Stats view.
season=0
means all seasons, and is cast here (None
means don’t filter the subsequent query).- Returns:
The rendered template for the route.
- supercontest.views.statistics.statistics_blueprint = <Blueprint 'statistics'>
The blueprint for the statistical views.
- supercontest.views.statistics.statistics_url_defaults(endpoint: str, values: dict[str, Any])
Wrapper for common defaults call. The
values
dict is mutated.- Parameters:
endpoint – The flask endpoint.
values – The flask values.
- supercontest.views.statistics.statistics_url_value_preprocessor(endpoint: str | None, values: dict[str, Any] | None)
Wrapper for common preprocessors call. Values are extracted then added to
g
.- Parameters:
endpoint – The flask endpoint.
values – The flask values.
- supercontest.views.statistics.statistics_values = {'league': False, 'stats_scope': True, 'week': False}
Which URL path params are required for this view.