Private
Public Access
1
0

strava export

This commit is contained in:
Sander Roosendaal
2019-03-10 16:37:05 +01:00
parent c073069832
commit 110fdb2497
2 changed files with 1 additions and 1 deletions

View File

@@ -422,7 +422,7 @@ def createstravaworkoutdata(w,dozip=True):
row.exporttotcx(tcxfilename,notes=newnotes)
if dozip:
gzfilename = tcxfilename+'.gz'
with file(tcxfilename,'rb') as inF:
with open(tcxfilename,'rb') as inF:
s = inF.read()
with gzip.GzipFile(gzfilename,'wb') as outF:
outF.write(s)

Binary file not shown.