Private
Public Access
1
0

less logging

This commit is contained in:
Sander Roosendaal
2021-01-15 04:46:10 +01:00
parent 4098fcc447
commit b5e708804e

View File

@@ -204,10 +204,9 @@ class Command(BaseCommand):
# Concept2
rowers = Rower.objects.filter(c2_auto_import=True)
for r in rowers:
with open('c2_auto_import.log','a') as logfile:
logfile.write(str(timezone.now())+" "+str(r.user)+" \n")
if user_is_not_basic(r.user):
with open('c2_auto_import.log','a') as logfile:
logfile.write(str(timezone.now())+" "+str(r.user)+" \n")
logfile.write(' getting workouts \n')
c2stuff.get_c2_workouts(r)