BRASIL ON ATZ NM mapping
This commit is contained in:
@@ -29,12 +29,7 @@ def import_activities(activities_json, filename: str):
|
||||
|
||||
if len(response.json()['activities']) < 1:
|
||||
logger.info(f'No activity imported for {filename}')
|
||||
print(f'No activity imported for {filename}')
|
||||
ntfy_service.send_notification(f'No activity imported for {filename}')
|
||||
else:
|
||||
ntfy_service.send_notification(f'Imported {len(response.json()['activities'])} activities from {filename}')
|
||||
print(f'Imported {len(response.json()['activities'])} activities from {filename}')
|
||||
|
||||
# print(json.dumps(response.json(), indent=4))
|
||||
|
||||
return response.status_code
|
||||
|
||||
Reference in New Issue
Block a user