Private
Public Access
1
0

reads excel template workout summary

This commit is contained in:
Sander Roosendaal
2017-12-07 14:40:24 +01:00
parent dc7cb419a5
commit 1140c67469
2 changed files with 7 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ from rowingdata import (
MysteryParser, BoatCoachOTWParser,QuiskeParser,
painsledDesktopParser, speedcoachParser, ErgStickParser,
SpeedCoach2Parser, FITParser, fitsummarydata,
make_cumvalues,cumcpdata,
make_cumvalues,cumcpdata,ExcelTemplate,
summarydata, get_file_type,
)
@@ -996,6 +996,11 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
def parsenonpainsled(fileformat,f2,summary):
# handle RowPro:
if (fileformat == 'xls'):
row = ExcelTemplate(f2)
hasrecognized = True
if (fileformat == 'rp'):
row = RowProParser(f2)
hasrecognized = True

View File

@@ -50,7 +50,7 @@ def validate_file_extension(value):
ext = os.path.splitext(value.name)[1]
valid_extensions = ['.tcx','.csv','.TCX',
'.CSV','.fit','.FIT','.zip','.ZIP',
'.gz','.GZ']
'.gz','.GZ','.xls']
if not ext in valid_extensions:
raise ValidationError(u'File not supported!')