geo-activity-playground 0.27.1__py3-none-any.whl → 0.29.0__py3-none-any.whl

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.
Files changed (40) hide show
  1. geo_activity_playground/__main__.py +1 -2
  2. geo_activity_playground/core/activities.py +3 -3
  3. geo_activity_playground/core/config.py +4 -0
  4. geo_activity_playground/core/paths.py +10 -0
  5. geo_activity_playground/core/tasks.py +7 -6
  6. geo_activity_playground/explorer/tile_visits.py +168 -133
  7. geo_activity_playground/webui/activity/controller.py +51 -14
  8. geo_activity_playground/webui/activity/templates/activity/show.html.j2 +37 -9
  9. geo_activity_playground/webui/app.py +20 -22
  10. geo_activity_playground/webui/auth/blueprint.py +27 -0
  11. geo_activity_playground/webui/auth/templates/auth/index.html.j2 +21 -0
  12. geo_activity_playground/webui/authenticator.py +46 -0
  13. geo_activity_playground/webui/entry_controller.py +8 -4
  14. geo_activity_playground/webui/equipment/controller.py +2 -1
  15. geo_activity_playground/webui/explorer/controller.py +4 -3
  16. geo_activity_playground/webui/explorer/templates/explorer/index.html.j2 +2 -0
  17. geo_activity_playground/webui/heatmap/heatmap_controller.py +20 -6
  18. geo_activity_playground/webui/plot_util.py +9 -0
  19. geo_activity_playground/webui/search/blueprint.py +20 -0
  20. geo_activity_playground/webui/settings/blueprint.py +101 -1
  21. geo_activity_playground/webui/settings/controller.py +43 -0
  22. geo_activity_playground/webui/settings/templates/settings/admin-password.html.j2 +19 -0
  23. geo_activity_playground/webui/settings/templates/settings/color-schemes.html.j2 +33 -0
  24. geo_activity_playground/webui/settings/templates/settings/index.html.j2 +27 -0
  25. geo_activity_playground/webui/settings/templates/settings/sharepic.html.j2 +22 -0
  26. geo_activity_playground/webui/square_planner/controller.py +1 -1
  27. geo_activity_playground/webui/summary/blueprint.py +3 -2
  28. geo_activity_playground/webui/summary/controller.py +20 -13
  29. geo_activity_playground/webui/templates/home.html.j2 +1 -1
  30. geo_activity_playground/webui/templates/page.html.j2 +57 -29
  31. geo_activity_playground/webui/upload/blueprint.py +7 -0
  32. geo_activity_playground/webui/upload/controller.py +4 -8
  33. geo_activity_playground/webui/upload/templates/upload/index.html.j2 +15 -31
  34. {geo_activity_playground-0.27.1.dist-info → geo_activity_playground-0.29.0.dist-info}/METADATA +3 -4
  35. {geo_activity_playground-0.27.1.dist-info → geo_activity_playground-0.29.0.dist-info}/RECORD +39 -32
  36. geo_activity_playground/webui/search_controller.py +0 -19
  37. /geo_activity_playground/webui/{templates/search.html.j2 → search/templates/search/index.html.j2} +0 -0
  38. {geo_activity_playground-0.27.1.dist-info → geo_activity_playground-0.29.0.dist-info}/LICENSE +0 -0
  39. {geo_activity_playground-0.27.1.dist-info → geo_activity_playground-0.29.0.dist-info}/WHEEL +0 -0
  40. {geo_activity_playground-0.27.1.dist-info → geo_activity_playground-0.29.0.dist-info}/entry_points.txt +0 -0
@@ -1,19 +0,0 @@
1
- import logging
2
-
3
- from ..core.activities import ActivityRepository
4
-
5
- logger = logging.getLogger(__name__)
6
-
7
-
8
- class SearchController:
9
- def __init__(self, repository: ActivityRepository) -> None:
10
- self._repository = repository
11
-
12
- def render_search_results(self, name: str) -> dict:
13
- logger.info(f"Searching for {name=}")
14
- activities = []
15
- for _, row in self._repository.meta.iterrows():
16
- if name in row["name"]:
17
- activities.append(row)
18
-
19
- return {"activities": activities}