geo-activity-playground 1.9.2__py3-none-any.whl → 1.9.3__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.
@@ -219,12 +219,12 @@ def read_gpx_activity(path: pathlib.Path, open) -> pd.DataFrame:
219
219
  datum.tag
220
220
  == "{http://www.garmin.com/xmlschemas/TrackPointExtension/v1}hr"
221
221
  ):
222
- row["heartrate"] = int(datum.text)
222
+ row["heartrate"] = int(float(datum.text))
223
223
  if (
224
224
  datum.tag
225
225
  == "{http://www.garmin.com/xmlschemas/TrackPointExtension/v1}cad"
226
226
  ):
227
- row["cadence"] = int(datum.text)
227
+ row["cadence"] = int(float(datum.text))
228
228
 
229
229
  points.append(row)
230
230
  df = pd.DataFrame(points)
@@ -194,7 +194,7 @@ def import_from_strava_checkout(config: Config) -> None:
194
194
 
195
195
  start_datetime = dateutil.parser.parse(
196
196
  row["Activity Date"], dayfirst=dayfirst
197
- ).replace(tzinfo=zoneinfo.ZoneInfo("utc"))
197
+ ).replace(tzinfo=zoneinfo.ZoneInfo("UTC"))
198
198
 
199
199
  activity_file = checkout_path / row["Filename"]
200
200
 
@@ -8,6 +8,7 @@ from ...core.export import export_all
8
8
  from ..authenticator import Authenticator
9
9
  from ..authenticator import needs_authentication
10
10
 
11
+ from datetime import date
11
12
 
12
13
  def make_export_blueprint(authenticator: Authenticator) -> Blueprint:
13
14
  blueprint = Blueprint("export", __name__, template_folder="templates")
@@ -25,7 +26,7 @@ def make_export_blueprint(authenticator: Authenticator) -> Blueprint:
25
26
  return Response(
26
27
  bytes(export_all(meta_format, activity_format)),
27
28
  mimetype="application/zip",
28
- headers={"Content-disposition": 'attachment; filename="export.zip"'},
29
+ headers={"Content-disposition": f'attachment; filename="GAP-export-{date.today().strftime("%Y-%m-%d")}.zip"'}
29
30
  )
30
31
 
31
32
  return blueprint
@@ -23,13 +23,13 @@ column_elevation_gain = ColumnDescription(
23
23
  )
24
24
  column_hours = ColumnDescription(
25
25
  name="hours",
26
- display_name="Elapsed time",
26
+ display_name="Elapsed Time",
27
27
  unit="h",
28
28
  format=".1f",
29
29
  )
30
30
  column_hours_moving = ColumnDescription(
31
31
  name="hours_moving",
32
- display_name="Moving time",
32
+ display_name="Moving Time",
33
33
  unit="h",
34
34
  format=".1f",
35
35
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geo-activity-playground
3
- Version: 1.9.2
3
+ Version: 1.9.3
4
4
  Summary: Analysis of geo data activities like rides, runs or hikes.
5
5
  License: MIT
6
6
  Author: Martin Ueding
@@ -52,11 +52,11 @@ geo_activity_playground/explorer/tile_visits.py,sha256=DzAmZmyLSeGe8mIg6-Kx1gXtC
52
52
  geo_activity_playground/explorer/video.py,sha256=7j6Qv3HG6On7Tn7xh7Olwrx_fbQnfzS7CeRg3TEApHg,4397
53
53
  geo_activity_playground/heatmap_video.py,sha256=I8i1uVvbbPUXVtvLAROaLy58nQoUPnuMCZkERWNkQjg,3318
54
54
  geo_activity_playground/importers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
- geo_activity_playground/importers/activity_parsers.py,sha256=dWtumZM4igsfWSECDOazLjTEf1YcaU04wJJ45EhfCVw,12461
55
+ geo_activity_playground/importers/activity_parsers.py,sha256=lh7B_ZwZkcwZgrwLhptobcLfxvDIiPJRgWdE9fZzKw4,12475
56
56
  geo_activity_playground/importers/csv_parser.py,sha256=O1pP5GLhWhnWcy2Lsrr9g17Zspuibpt-GtZ3ZS5eZF4,2143
57
57
  geo_activity_playground/importers/directory.py,sha256=sHcLIi0DOPEATt4wiE_vp00h89fO940wUQyJZUzzpnw,3978
58
58
  geo_activity_playground/importers/strava_api.py,sha256=1sRb_CD4tbsW-MwP6QPg7zpATlb6XpniS4rtH72iwkw,9606
59
- geo_activity_playground/importers/strava_checkout.py,sha256=joJI_uic9fYtu7E5Odh6GUq_LyiLqQ72Ucy_Mbjr-X0,9289
59
+ geo_activity_playground/importers/strava_checkout.py,sha256=j_M_FEEQocLWcnrgeLR9hEs3WNwhdLc88DaS5-UWjxs,9289
60
60
  geo_activity_playground/importers/test_csv_parser.py,sha256=nOTVTdlzIY0TDcbWp7xNyNaIO6Mkeu55hVziVl22QE4,1092
61
61
  geo_activity_playground/importers/test_directory.py,sha256=_fn_-y98ZyElbG0BRxAmGFdtGobUShPU86SdEOpuv-A,691
62
62
  geo_activity_playground/importers/test_strava_api.py,sha256=7b8bl5Rh2BctCmvTPEhCadxtUOq3mfzuadD6F5XxRio,398
@@ -72,7 +72,7 @@ geo_activity_playground/webui/blueprints/eddington_blueprints.py,sha256=s5o_U1rq
72
72
  geo_activity_playground/webui/blueprints/entry_views.py,sha256=slGyYokGattdG-e5Ef9s_ys4ohVVAkFLFclEQS5fEr4,2954
73
73
  geo_activity_playground/webui/blueprints/equipment_blueprint.py,sha256=6u81Hestr4FP6mix_avQp9jaK0In4WNdYaSwKL5cJDs,5757
74
74
  geo_activity_playground/webui/blueprints/explorer_blueprint.py,sha256=fe4ZNROmpks-nP4Wsw2vc9t5_X508-6Xi1dv07O_NfQ,20979
75
- geo_activity_playground/webui/blueprints/export_blueprint.py,sha256=C9yFH5gEJs2YtWE-EhcGDEyGwwaLgC1umybgIRi6duE,1036
75
+ geo_activity_playground/webui/blueprints/export_blueprint.py,sha256=Rppuyk_TkP1GeDplxgKnRkyujDR-hGhD3oWRnNNCEjc,1102
76
76
  geo_activity_playground/webui/blueprints/hall_of_fame_blueprint.py,sha256=NGVk8Xgwpt-YNX5_zgGWTMRctN_N4NCnMq10DSDteVg,3121
77
77
  geo_activity_playground/webui/blueprints/heatmap_blueprint.py,sha256=prERVBOxq2xvmgyH_dwtLwMMMFILeu-6yZE9h9U_T9g,8418
78
78
  geo_activity_playground/webui/blueprints/photo_blueprint.py,sha256=i4-AS9icK6pDypTdl-coTZyKldXtpukGiNbKsihfpl0,7299
@@ -84,7 +84,7 @@ geo_activity_playground/webui/blueprints/summary_blueprint.py,sha256=giVLJttJ2my
84
84
  geo_activity_playground/webui/blueprints/tile_blueprint.py,sha256=YzZf9OrNdjhc1_j4MtO1DMcw1uCv29ueNsYd-mWqgbg,837
85
85
  geo_activity_playground/webui/blueprints/time_zone_fixer_blueprint.py,sha256=PEHsk3kRHx2EvQ-6VPD4xeOmXGjh64GMAagFkQ0wbeg,2301
86
86
  geo_activity_playground/webui/blueprints/upload_blueprint.py,sha256=VLyMic2ptBRcMyunGXl-6Auxs1jglIO5fYgRGPhH25s,4816
87
- geo_activity_playground/webui/columns.py,sha256=FP0YfX-WFQk1JEXhrywv3NUEVq-x7Hv0or35X3Ltf9c,1525
87
+ geo_activity_playground/webui/columns.py,sha256=C9Bg4J2Z8xbSZKdNParm1IKoR9nHStyroiBZDFdoZT4,1525
88
88
  geo_activity_playground/webui/flasher.py,sha256=Covc1D9cO_jjokRWnvyiXCc2tfp3aZ8XkNqFdA1AXtk,500
89
89
  geo_activity_playground/webui/plot_util.py,sha256=5Uesjj-xcMskQX2z9viDZYHSxLGrH2a5dHA1ogsJW9U,261
90
90
  geo_activity_playground/webui/search_util.py,sha256=gH2cOM1FTAozZUlSQ4C1dR1xlV-8e82pD1PPi_pPBNY,2647
@@ -175,8 +175,8 @@ geo_activity_playground/webui/templates/summary/vega-chart.html.j2,sha256=mw8Hti
175
175
  geo_activity_playground/webui/templates/time_zone_fixer/index.html.j2,sha256=s9r6BJMXmd7kLSyjkvH4xLi6e01S5bpGRcMgMMJyCAE,1760
176
176
  geo_activity_playground/webui/templates/upload/index.html.j2,sha256=5W2gpm4eSvidOyJOCSZZbvTZaTkSWNrOWux3-oIm0zI,784
177
177
  geo_activity_playground/webui/templates/upload/reload.html.j2,sha256=YZWX5eDeNyqKJdQAywDBcU8DZBm22rRBbZqFjrFrCvQ,556
178
- geo_activity_playground-1.9.2.dist-info/LICENSE,sha256=4RpAwKO8bPkfXH2lnpeUW0eLkNWglyG4lbrLDU_MOwY,1070
179
- geo_activity_playground-1.9.2.dist-info/METADATA,sha256=yulIhsXBd3Osqgumn4RYD31XflfkZdwaojp6Y54ZTAU,1937
180
- geo_activity_playground-1.9.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
181
- geo_activity_playground-1.9.2.dist-info/entry_points.txt,sha256=pbNlLI6IIZIp7nPYCfAtiSiz2oxJSCl7DODD6SPkLKk,81
182
- geo_activity_playground-1.9.2.dist-info/RECORD,,
178
+ geo_activity_playground-1.9.3.dist-info/LICENSE,sha256=4RpAwKO8bPkfXH2lnpeUW0eLkNWglyG4lbrLDU_MOwY,1070
179
+ geo_activity_playground-1.9.3.dist-info/METADATA,sha256=AEO2ezh1z0d7ZOpfNpJkLS6z1wb7p2Ps8tjGPvG-Ha4,1937
180
+ geo_activity_playground-1.9.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
181
+ geo_activity_playground-1.9.3.dist-info/entry_points.txt,sha256=pbNlLI6IIZIp7nPYCfAtiSiz2oxJSCl7DODD6SPkLKk,81
182
+ geo_activity_playground-1.9.3.dist-info/RECORD,,