some coverage fixes
This commit is contained in:
@@ -3772,7 +3772,7 @@ def auto_delete_image_on_delete(sender,instance, **kwargs):
|
|||||||
if others.count() == 0:
|
if others.count() == 0:
|
||||||
os.remove(instance.filename)
|
os.remove(instance.filename)
|
||||||
else:
|
else:
|
||||||
print("couldn't find the file "+instance.filename)
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -610,7 +610,7 @@ def step_to_time_dist(step,avgspeed = 3.2,ftp=200,ftspm=25,ftv=3.7):
|
|||||||
valuelow = step.get('targetValueLow',0)
|
valuelow = step.get('targetValueLow',0)
|
||||||
valuehigh = step.get('targetValueHigh',0)
|
valuehigh = step.get('targetValueHigh',0)
|
||||||
velomid = 0.
|
velomid = 0.
|
||||||
if value != 0:
|
if value != 0: # pragma: no cover
|
||||||
distance = seconds*value/1000.
|
distance = seconds*value/1000.
|
||||||
velomid = value/1000.
|
velomid = value/1000.
|
||||||
elif valuelow != 0 and valuehigh != 0: # pragma: no cover
|
elif valuelow != 0 and valuehigh != 0: # pragma: no cover
|
||||||
|
|||||||
Reference in New Issue
Block a user