adding tombstones
This commit is contained in:
@@ -165,9 +165,15 @@ def get_strava_workouts(rower):
|
||||
w.uploadedtostrava = int(stravaid)
|
||||
w.save()
|
||||
|
||||
knownstravaids = uniqify([
|
||||
knownstravaids = [
|
||||
w.uploadedtostrava for w in Workout.objects.filter(user=rower)
|
||||
])
|
||||
]
|
||||
|
||||
tombstones = [
|
||||
t.uploadedtostrava for t in TombStone.objects.filter(user=rower)
|
||||
]
|
||||
|
||||
knownstravaids = uniqify(knownstravaids+tombstones)
|
||||
|
||||
newids = [stravaid for stravaid in stravaids if not stravaid in knownstravaids]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user