Private
Public Access
1
0

Merge branch 'hotfix/v7.13'

This commit is contained in:
Sander Roosendaal
2018-06-28 16:22:16 +02:00

View File

@@ -159,10 +159,6 @@ class Command(BaseCommand):
for r in rowers:
c2stuff.get_c2_workouts(r)
# Strava
rowers = Rower.objects.filter(strava_auto_import=True)
for r in rowers:
stravastuff.get_strava_workouts(r)
messages = Message.objects.filter(mailbox_id = workoutmailbox.id)
message_ids = [m.id for m in messages]
@@ -245,5 +241,10 @@ class Command(BaseCommand):
if message.attachments.exists() is False:
message.delete()
# Strava
rowers = Rower.objects.filter(strava_auto_import=True)
for r in rowers:
stravastuff.get_strava_workouts(r)
self.stdout.write(self.style.SUCCESS(
'Successfully processed email attachments'))