From a8c0fb666e9ca350d05cf8bd77b4eed70ed6b349 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sat, 2 Jan 2021 21:18:23 +0100 Subject: [PATCH 1/2] sync stops if row is duplicate --- rowers/uploads.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rowers/uploads.py b/rowers/uploads.py index 0104a2fd..6dd978f2 100644 --- a/rowers/uploads.py +++ b/rowers/uploads.py @@ -524,6 +524,9 @@ def make_private(w,options): return 1 def do_sync(w,options, quick=False): + if row.duplicate: + return 0 + try: upload_to_strava = options['upload_to_Strava'] except KeyError: From e36237a928a47d875a757fc7bede72c7904a6ad8 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sat, 2 Jan 2021 21:25:15 +0100 Subject: [PATCH 2/2] no sync for duplicates --- rowers/uploads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/uploads.py b/rowers/uploads.py index 6dd978f2..b0168a62 100644 --- a/rowers/uploads.py +++ b/rowers/uploads.py @@ -524,7 +524,7 @@ def make_private(w,options): return 1 def do_sync(w,options, quick=False): - if row.duplicate: + if w.duplicate: return 0 try: