removing print statements
This commit is contained in:
@@ -1478,7 +1478,6 @@ def checkbreakthrough(w, r):
|
||||
|
||||
|
||||
def checkduplicates(r,workoutdate,workoutstartdatetime,workoutenddatetime):
|
||||
print(workoutdate,workoutstartdatetime,workoutenddatetime)
|
||||
duplicate = False
|
||||
ws = Workout.objects.filter(user=r,date=workoutdate,duplicate=False).exclude(
|
||||
startdatetime__gt=workoutenddatetime
|
||||
@@ -1487,13 +1486,11 @@ def checkduplicates(r,workoutdate,workoutstartdatetime,workoutenddatetime):
|
||||
ws2 = []
|
||||
|
||||
for ww in ws:
|
||||
print(ww)
|
||||
t = ww.duration
|
||||
delta = datetime.timedelta(hours=t.hour, minutes=t.minute, seconds=t.second)
|
||||
enddatetime = ww.startdatetime+delta
|
||||
print(enddatetime,workoutstartdatetime)
|
||||
if enddatetime > workoutstartdatetime:
|
||||
print('ja')
|
||||
ws2.append(ww)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user