Private
Public Access
1
0

fixing c2 export from rp3

This commit is contained in:
Sander Roosendaal
2023-02-01 19:12:07 +01:00
parent 54d4ed633f
commit 54b57d51bf
4 changed files with 20 additions and 7 deletions

View File

@@ -876,9 +876,10 @@ def checkduplicates(r, workoutdate, workoutstartdatetime, workoutenddatetime):
t = ww.duration
delta = datetime.timedelta(
hours=t.hour, minutes=t.minute, seconds=t.second)
enddatetime = ww.startdatetime+delta
if enddatetime > workoutstartdatetime:
ws2.append(ww)
if ww.startdatetime is not None:
enddatetime = ww.startdatetime+delta
if enddatetime > workoutstartdatetime:
ws2.append(ww)
if (len(ws2) != 0):
duplicate = True