From 3d1818f081df63a771fe5f79ff0ce857ad41154e Mon Sep 17 00:00:00 2001 From: Roman Bazalevskiy Date: Sun, 27 May 2018 13:44:44 +0300 Subject: [PATCH 1/1] =?utf8?q?=D0=9D=D0=B5=D0=B7=D0=BD=D0=B0=D1=87=D0=B8?= =?utf8?q?=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D0=B5=20=D0=B8=D1=81=D0=BF?= =?utf8?q?=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B4=D0=BB?= =?utf8?q?=D1=8F=20"=D1=81=D0=B8=D0=BC=D0=BC=D0=B5=D1=82=D1=80=D0=B8=D0=B8?= =?utf8?q?"=20=D0=B8=D1=81=D1=82=D0=BE=D1=87=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2?= =?utf8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- pyrungps.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyrungps.py b/pyrungps.py index 0f0dc56..f6ad327 100644 --- a/pyrungps.py +++ b/pyrungps.py @@ -277,6 +277,13 @@ def sync_folder(username,year,month,dir=".",verbose=False,force=False): gpx = pygpx.GPX() gpx.ReadTree(xml) + sport = training['sport'] + timestamp = gpx.tracks[0].start_time() + + if check_db_for_training(db,sport,timestamp): + print "The same training found" + continue + gpx.FixNames(tr[0]) gpx.ProcessTrackSegs() -- 2.34.1