Private
Public Access
1
0

Merge branch 'develop' into feature/testcoverage

This commit is contained in:
Sander Roosendaal
2021-01-13 08:49:34 +01:00
2 changed files with 6 additions and 2 deletions

View File

@@ -204,7 +204,7 @@ class Command(BaseCommand):
# Concept2
rowers = Rower.objects.filter(c2_auto_import=True)
for r in rowers:
if user_is_not_basic(rower.user):
if user_is_not_basic(r.user):
c2stuff.get_c2_workouts(r)
@@ -246,7 +246,10 @@ class Command(BaseCommand):
except IOError:
rowers = []
except Message.DoesNotExist:
attachment.delete()
try:
attachment.delete()
except:
pass
for rower in rowers:
if 'zip' in extension:
try:

View File

@@ -24,6 +24,7 @@ import gzip
import base64
import yaml
from uuid import uuid4
from requests import ConnectionError
# Django
from django.shortcuts import render_to_response