supercontest.views.matchups

The blueprint for the matchups views.

Module Attributes

matchups_blueprint

The blueprint for the matchups views.

matchups_values

Which URL path params are required for this view.

Functions

matchups

The route to show all matchups for a given week, and the current user's picks.

matchups_url_defaults

Wrapper for common defaults call.

matchups_url_value_preprocessor

Wrapper for common preprocessors call.

supercontest.views.matchups.matchups() str

The route to show all matchups for a given week, and the current user’s picks.

Returns:

The rendered template for the view.

supercontest.views.matchups.matchups_blueprint = <Blueprint 'matchups'>

The blueprint for the matchups views.

supercontest.views.matchups.matchups_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.matchups.matchups_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.matchups.matchups_values = {'league': False, 'week': True}

Which URL path params are required for this view.