many updates
This commit is contained in:
19
FitnessSync/scratch/trigger_scan.py
Normal file
19
FitnessSync/scratch/trigger_scan.py
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
import requests
|
||||
import json
|
||||
|
||||
# Activity ID 31 matches Garmin ID 21072264737
|
||||
ACT_ID = 21072264737
|
||||
URL = f"http://localhost:8000/api/segments/scan/{ACT_ID}"
|
||||
|
||||
def trigger():
|
||||
print(f"Triggering scan for Activity {ACT_ID}...")
|
||||
try:
|
||||
res = requests.post(URL)
|
||||
print(f"Status: {res.status_code}")
|
||||
print(f"Response: {res.text}")
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
trigger()
|
||||
Reference in New Issue
Block a user