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, MysteryParser, BoatCoachOTWParser,QuiskeParser,
painsledDesktopParser, speedcoachParser, ErgStickParser, painsledDesktopParser, speedcoachParser, ErgStickParser,
SpeedCoach2Parser, FITParser, fitsummarydata, SpeedCoach2Parser, FITParser, fitsummarydata,
RitmoTimeParser, RitmoTimeParser,KinoMapParser,
make_cumvalues,cumcpdata,ExcelTemplate, make_cumvalues,cumcpdata,ExcelTemplate,
summarydata, get_file_type, summarydata, get_file_type,
) )
@@ -1073,6 +1073,7 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
return (w.id, message) return (w.id, message)
parsers = { parsers = {
'kinomap': KinoMapParser,
'xls': ExcelTemplate, 'xls': ExcelTemplate,
'rp': RowProParser, 'rp': RowProParser,
'tcx':TCXParser, 'tcx':TCXParser,
@@ -1173,6 +1174,7 @@ def new_workout_from_file(r, f2,
message = None message = None
try: try:
fileformat = get_file_type(f2) fileformat = get_file_type(f2)
print fileformat,'aap'
except IOError: except IOError:
os.remove(f2) 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." 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."