Private
Public Access
1
0

demo version new strava import

This commit is contained in:
Sander Roosendaal
2021-08-24 18:11:48 +02:00
parent 4b4cb20f87
commit b0ce799a88
4 changed files with 45 additions and 8 deletions

View File

@@ -307,9 +307,10 @@ class Command(BaseCommand):
message.delete()
# Strava
#rowers = Rower.objects.filter(strava_auto_import=True)
#for r in rowers:
# stravastuff.get_strava_workouts(r)
rowers = Rower.objects.filter(strava_auto_import=True)
for r in rowers:
if user_is_not_basic(r.user):
stravastuff.get_strava_workouts(r)
self.stdout.write(self.style.SUCCESS(
'Successfully processed email attachments'))