Merge branch 'release/v22.7.7'
This commit is contained in:
@@ -377,6 +377,7 @@ class IntervalsIntegration(SyncIntegration):
|
|||||||
if not force_download and id in known_interval_ids:
|
if not force_download and id in known_interval_ids:
|
||||||
return self.update_workout(id)
|
return self.update_workout(id)
|
||||||
|
|
||||||
|
|
||||||
record = create_or_update_syncrecord(r, None, intervalsid=id)
|
record = create_or_update_syncrecord(r, None, intervalsid=id)
|
||||||
|
|
||||||
if do_async:
|
if do_async:
|
||||||
@@ -728,7 +729,12 @@ class IntervalsIntegration(SyncIntegration):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
id = record['id']
|
id = record['id']
|
||||||
result = self.get_workout(id, do_async=False)
|
external_id = record['external_id']
|
||||||
|
try:
|
||||||
|
w = Workout.objects.get(id=encoder.decode_hex(external_id))
|
||||||
|
result = self.update_workout(id)
|
||||||
|
except Workout.DoesNotExist:
|
||||||
|
result = self.get_workout(id, do_async=False)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user