projects
/
pyrungps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1413506
)
Empty file (GPS.Sport storage backend failure) handling.
author
Roman Bazalevskiy
<rvb@rvb.name>
Sat, 12 Aug 2023 16:40:41 +0000
(19:40 +0300)
committer
Roman Bazalevskiy
<rvb@rvb.name>
Sat, 12 Aug 2023 16:40:41 +0000
(19:40 +0300)
pyrungps/pyrungps_sync.py
patch
|
blob
|
history
diff --git
a/pyrungps/pyrungps_sync.py
b/pyrungps/pyrungps_sync.py
index 18c2235c34ac667f1dec830e22980745a9ee2ea6..67362156ea82d66235aeccc78f1dc826017a84fe 100644
(file)
--- a/
pyrungps/pyrungps_sync.py
+++ b/
pyrungps/pyrungps_sync.py
@@
-189,6
+189,10
@@
def sync_db(dbx,username,year,month,dir=".",verbose=False,force=False):
sport = training['sport']
timestamp = gpx.tracks[0].start_time()
+
+ if not(timestamp):
+ print("Empty training found, skipping...")
+ continue
print(sport, timestamp)