webapp.routes
Routes for pgconfig-ce webapp.
Module Contents
Functions
|
Gets the current year. Used for providing dynamic |
|
|
|
|
Route supporting removed feature. If users have this route bookmarked, |
|
Route supporting removed feature. If users have this route bookmarked, |
|
|
Returns HTML of parameter options to select from on the "single parameter" |
|
Attributes
- webapp.routes.get_year()[source]
Gets the current year. Used for providing dynamic copyright year in the footer.
- Returns:
Current year
- Return type:
int
- webapp.routes.redirect_custom_with_defaults()[source]
Route supporting removed feature. If users have this route bookmarked, don’t just 404 on them. Gives hint at query to run to get the data directly in their database.
- webapp.routes.view_custom_config_comparison(vers1)[source]
Route supporting removed feature. If users have this route bookmarked, don’t just 404 on them. Gives hint at query to run to get the data directly in their database.
- webapp.routes.get_param_select_html(filter_default: str = 'max_parallel_workers_per_gather') str [source]
Returns HTML of parameter options to select from on the “single parameter” page.
- Parameters:
filter_default (str) – Default value: max_parallel_workers_per_gather
- Returns:
html
- Return type:
str