small fix
This commit is contained in:
@@ -644,8 +644,14 @@ def cpdata(workouts, options):
|
||||
hourvalue = 0
|
||||
tvalue = minutes
|
||||
# hourvalue = 1, tvalue = 17
|
||||
hourvalue = int(hourvalue)
|
||||
minutevalue = int(tvalue)
|
||||
try:
|
||||
hourvalue = int(hourvalue)
|
||||
except TypeError:
|
||||
hourvalue = 0
|
||||
try:
|
||||
minutevalue = int(tvalue)
|
||||
except TypeError:
|
||||
minutevalue = 0
|
||||
|
||||
tvalue = int(60*(tvalue-minutevalue))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user