From: Roman Bazalevskiy Date: Sun, 27 May 2018 10:44:44 +0000 (+0300) Subject: Незначительные исправления для "симметрии" источников. X-Git-Url: https://git.rvb.name/pyrungps.git/commitdiff_plain/3d1818f081df63a771fe5f79ff0ce857ad41154e?hp=81020ed69398f00cdb0564a132dfdf0285e9b844 Незначительные исправления для "симметрии" источников. --- 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()