We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c17cd54 commit 1ee1664Copy full SHA for 1ee1664
1 file changed
demo.py
@@ -1287,7 +1287,6 @@ def get_solar_data(api: Garmin) -> None:
1287
def upload_activity_file(api: Garmin) -> None:
1288
"""Upload activity data from file."""
1289
import glob
1290
- import os
1291
1292
try:
1293
# List all .gpx files in test_data
@@ -1313,9 +1312,6 @@ def upload_activity_file(api: Garmin) -> None:
1313
1312
print("Please enter a valid number.")
1314
1315
print(f"📤 Uploading activity from file: {selected_file}")
1316
- if not os.path.exists(selected_file):
1317
- print(f"❌ File not found: {selected_file}")
1318
- return
1319
1320
result = api.upload_activity(selected_file)
1321
0 commit comments