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