Private
Public Access
1
0

fixing more

This commit is contained in:
2023-12-18 11:21:03 +01:00
parent 4c68aea9e5
commit bf0c3dfbed
4 changed files with 16 additions and 16 deletions

View File

@@ -3688,9 +3688,9 @@ def create_or_update_syncrecord(rower, workout, **kwargs):
if workout:
records = SyncRecord.objects.filter(workout=workout,rower=rower)
if records.count():
try:
record = records[0]
else:
except IndexError:
records = SyncRecord.objects.filter(**kwargs,rower=rower)
if records.count():
record = records[0]