Private
Public Access
1
0
This commit is contained in:
2024-12-28 13:35:34 +01:00
parent f19ca582ac
commit 0cba7690b3
4 changed files with 5 additions and 3 deletions

View File

@@ -582,9 +582,10 @@ class IntervalsIntegration(SyncIntegration):
try:
id = record['id']
try:
w = Workout.objects.get(uploadedtointervals=id)
ws = Workout.objects.filter(uploadedtointervals=id)
if w.user == self.rower:
w.delete()
for w in ws:
w.delete()
except Workout.DoesNotExist:
pass
except KeyError: