Private
Public Access
1
0

added gzip to OTW power calc

This commit is contained in:
Sander Roosendaal
2017-02-08 11:30:42 +01:00
parent 6348c67a71
commit 75a37ff642

View File

@@ -116,8 +116,11 @@ def handle_otwsetpower(f1,boattype,weightvalue,
try:
rowdata = rdata(f1)
except IOError:
rowdata = rdata(f1+'.csv')
try:
rowdata = rdata(f1+'.csv')
except IOError:
rowdata = rdata(f1+'.gz')
weightvalue = float(weightvalue)
# do something with boat type
@@ -154,14 +157,12 @@ def handle_otwsetpower(f1,boattype,weightvalue,
subject = "Your Rowsandall OTW calculations are ready"
message = "Dear "+first_name+",\n\n"
message += "Your Rowsandall OTW calculations are ready.\n"
# message += "You can now create OTW plots with power information and wind corrections.\n\n"
message += "Thank you for using rowsandall.com.\n\n"
message += "Rowsandall OTW calculations have not been fully implemented yet.\n"
message += "We are now running an experimental version for debugging purposes. \n"
message += "Your wind/stream corrected plot is available here: http://rowsandall.com/rowers/workout/"
message += str(workoutid)
message +="/interactiveotwplot\n\n"
# message += "This functionality will be available soon, though.\n\n"
message += "Please report any bugs/inconsistencies/unexpected results at rowsandall.slack.com or by reply to this email.\n\n"
message += "Best Regards, The Rowsandall Physics Department."