geo-activity-playground 0.43.1__tar.gz → 0.43.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/PKG-INFO +1 -1
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/explorer_blueprint.py +2 -1
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/settings_blueprint.py +10 -8
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/upload_blueprint.py +1 -1
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/pyproject.toml +1 -1
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/LICENSE +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/__init__.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/__main__.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/alembic/README +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/alembic/env.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/alembic/script.py.mako +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/alembic/versions/38882503dc7c_add_tags_to_activities.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/alembic/versions/451e7836b53d_add_square_planner_bookmark.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/alembic/versions/63d3b7f6f93c_initial_version.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/alembic/versions/93cc82ad1b60_add_parametricplotspec.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/alembic/versions/ab83b9d23127_add_upstream_id.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/alembic/versions/b03491c593f6_add_crop_indices.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/alembic/versions/da2cba03b71d_add_photos.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/alembic/versions/e02e27876deb_add_square_planner_bookmark_name.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/alembic/versions/script.py.mako +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/__init__.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/activities.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/config.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/coordinates.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/datamodel.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/enrichment.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/heart_rate.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/meta_search.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/missing_values.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/parametric_plot.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/paths.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/privacy_zones.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/raster_map.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/similarity.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/summary_stats.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/tasks.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/test_datamodel.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/test_meta_search.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/test_missing_values.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/test_summary_stats.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/test_tiles.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/test_time_conversion.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/tiles.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/core/time_conversion.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/explorer/__init__.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/explorer/grid_file.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/explorer/tile_visits.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/explorer/video.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/heatmap_video.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/importers/__init__.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/importers/activity_parsers.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/importers/csv_parser.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/importers/directory.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/importers/strava_api.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/importers/strava_checkout.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/importers/test_csv_parser.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/importers/test_directory.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/importers/test_strava_api.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/__init__.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/app.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/authenticator.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/__init__.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/activity_blueprint.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/auth_blueprint.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/bubble_chart_blueprint.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/calendar_blueprint.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/eddington_blueprints.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/entry_views.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/equipment_blueprint.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/heatmap_blueprint.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/photo_blueprint.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/plot_builder_blueprint.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/search_blueprint.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/square_planner_blueprint.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/summary_blueprint.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/blueprints/tile_blueprint.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/columns.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/flasher.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/plot_util.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/search_util.py +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/Leaflet.fullscreen.min.js +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/MarkerCluster.Default.css +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/MarkerCluster.css +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/android-chrome-192x192.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/android-chrome-512x512.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/apple-touch-icon.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/bootstrap-dark-mode.js +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/bootstrap.bundle.min.js +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/bootstrap.min.css +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/browserconfig.xml +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/favicon-16x16.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/favicon-32x32.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/favicon-48x48.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/favicon.ico +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/favicon.svg +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/fullscreen.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/fullscreen@2x.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/images/layers-2x.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/images/layers.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/images/marker-icon-2x.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/images/marker-icon.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/images/marker-shadow.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/leaflet.css +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/leaflet.fullscreen.css +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/leaflet.js +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/leaflet.markercluster.js +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/mstile-150x150.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/site.webmanifest +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/table-sort.min.js +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/vega-embed@6 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/vega-lite@4 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/vega@5 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/web-app-manifest-192x192.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/static/web-app-manifest-512x512.png +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/activity/day.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/activity/edit.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/activity/lines.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/activity/name.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/activity/show.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/activity/trim.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/auth/index.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/bubble_chart/index.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/calendar/index.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/calendar/month.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/eddington/distance.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/eddington/elevation_gain.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/elevation_eddington/index.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/equipment/index.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/explorer/index.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/explorer/server-side.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/heatmap/index.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/home.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/page.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/photo/map.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/photo/new.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/plot_builder/edit.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/plot_builder/index.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/search/index.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/search_form.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/admin-password.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/color-schemes.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/heart-rate.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/index.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/manage-equipments.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/manage-kinds.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/metadata-extraction.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/privacy-zones.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/segmentation.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/sharepic.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/strava.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/tags-edit.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/tags-list.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/settings/tags-new.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/square_planner/index.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/summary/index.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/upload/index.html.j2 +0 -0
- {geo_activity_playground-0.43.1 → geo_activity_playground-0.43.3}/geo_activity_playground/webui/templates/upload/reload.html.j2 +0 -0
@@ -212,7 +212,8 @@ def make_explorer_blueprint(
|
|
212
212
|
width = 256 // factor
|
213
213
|
for xo in range(factor):
|
214
214
|
for yo in range(factor):
|
215
|
-
|
215
|
+
tile = (x * factor + xo, y * factor + yo)
|
216
|
+
if tile not in tile_visits:
|
216
217
|
map_tile[
|
217
218
|
yo * width : (yo + 1) * width, xo * width : (xo + 1) * width
|
218
219
|
] = grayscale[
|
@@ -95,16 +95,18 @@ def make_settings_blueprint(
|
|
95
95
|
def index():
|
96
96
|
return render_template("settings/index.html.j2")
|
97
97
|
|
98
|
-
@blueprint.route("/admin-password")
|
98
|
+
@blueprint.route("/admin-password", methods=["GET", "POST"])
|
99
99
|
@needs_authentication(authenticator)
|
100
100
|
def admin_password() -> Response:
|
101
101
|
if request.method == "POST":
|
102
102
|
config_accessor().upload_password = request.form["password"]
|
103
103
|
config_accessor.save()
|
104
104
|
flasher.flash_message("Updated admin password.", FlashTypes.SUCCESS)
|
105
|
-
return
|
106
|
-
|
107
|
-
|
105
|
+
return Response(
|
106
|
+
render_template(
|
107
|
+
"settings/admin-password.html.j2",
|
108
|
+
password=config_accessor().upload_password,
|
109
|
+
)
|
108
110
|
)
|
109
111
|
|
110
112
|
@blueprint.route("/color-schemes", methods=["GET", "POST"])
|
@@ -158,11 +160,11 @@ def make_settings_blueprint(
|
|
158
160
|
assert len(ids) == len(names) == len(offsets)
|
159
161
|
for id, name, offset in zip(ids, names, offsets):
|
160
162
|
if id:
|
161
|
-
equipment = DB.session.
|
163
|
+
equipment = DB.session.get_one(Equipment, int(id))
|
162
164
|
equipment.name = name
|
163
165
|
equipment.offset_km = int(float(offset))
|
164
166
|
if not id and name:
|
165
|
-
equipment = Equipment(name)
|
167
|
+
equipment = Equipment(name=name)
|
166
168
|
if offset:
|
167
169
|
equipment.offset_km = int(float(offset))
|
168
170
|
DB.session.add(equipment)
|
@@ -191,11 +193,11 @@ def make_settings_blueprint(
|
|
191
193
|
assert len(ids) == len(names)
|
192
194
|
for id, name in zip(ids, names):
|
193
195
|
if id:
|
194
|
-
kind = DB.session.
|
196
|
+
kind = DB.session.get_one(Kind, int(id))
|
195
197
|
kind.name = name
|
196
198
|
kind.consider_for_achievements = id in consider_for_achievements
|
197
199
|
if not id and name:
|
198
|
-
kind = Kind(name)
|
200
|
+
kind = Kind(name=name)
|
199
201
|
if consider_for_achievements:
|
200
202
|
kind.consider_for_achievements = (
|
201
203
|
"new" in consider_for_achievements
|
@@ -124,7 +124,7 @@ def scan_for_activities(
|
|
124
124
|
kind.consider_for_achievements = True
|
125
125
|
DB.session.commit()
|
126
126
|
tile_visit_accessor.reset()
|
127
|
-
work_tracker_path("tile-state").unlink()
|
127
|
+
work_tracker_path("tile-state").unlink(missing_ok=True)
|
128
128
|
compute_tile_visits_new(repository, tile_visit_accessor)
|
129
129
|
compute_tile_evolution(tile_visit_accessor.tile_state, config)
|
130
130
|
tile_visit_accessor.save()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|