projects
/
pyrungps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Режим работы "только обработать очередь".
[pyrungps.git]
/
pyrungps.py
diff --git
a/pyrungps.py
b/pyrungps.py
index 0f0dc563206b28a58116df86a2b1c2ab3342a2ae..f6ad327a96b48dd250f812290dc684cf7d9ad3b0 100644
(file)
--- 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()