Private
Public Access
1
0

fixing tests

This commit is contained in:
Sander Roosendaal
2021-05-16 16:07:24 +02:00
parent cbf7c4ab0b
commit a9da920ffa
3 changed files with 6 additions and 3 deletions

View File

@@ -278,7 +278,7 @@ def step_to_garmin(step,order=0):
except KeyError:
targetValueHigh = None
if targetType.lower() == "power":
if targetType is not None and targetType.lower() == "power":
targetType = 'POWER'
if targetValue is not None and targetValue > 1000:
targetValue -= 1000
@@ -288,7 +288,7 @@ def step_to_garmin(step,order=0):
targetValueLow -= 1000
# temp - throw away target other than power
if targetType.lower() != 'power':
if targetType is not None and targetType.lower() != 'power':
targetType = None
targetValue = None
targetValueLow = None