Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2018-07-04 17:17:25 +02:00
parent 5960c276a8
commit 07d6ec554b

View File

@@ -34,7 +34,7 @@ from rowingdata import (
MysteryParser, BoatCoachOTWParser,QuiskeParser,
painsledDesktopParser, speedcoachParser, ErgStickParser,
SpeedCoach2Parser, FITParser, fitsummarydata,
RitmoTimeParser,
RitmoTimeParser,KinoMapParser,
make_cumvalues,cumcpdata,ExcelTemplate,
summarydata, get_file_type,
)
@@ -1073,6 +1073,7 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
return (w.id, message)
parsers = {
'kinomap': KinoMapParser,
'xls': ExcelTemplate,
'rp': RowProParser,
'tcx':TCXParser,
@@ -1173,6 +1174,7 @@ def new_workout_from_file(r, f2,
message = None
try:
fileformat = get_file_type(f2)
print fileformat,'aap'
except IOError:
os.remove(f2)
message = "Rowsandall could not process this file. The extension is supported but the file seems corrupt. Contact info@rowsandall.com if you think this is incorrect."