[bugfix] slightly wrong if condition
This commit is contained in:
parent
b875e63f83
commit
305ab25ab2
1
.gitignore
vendored
1
.gitignore
vendored
@ -211,3 +211,4 @@ flycheck_*.el
|
|||||||
/network-security.data
|
/network-security.data
|
||||||
|
|
||||||
|
|
||||||
|
/__simulate_fail.json
|
||||||
|
@ -657,8 +657,8 @@ class StationQC(object):
|
|||||||
# if first entry was no error but all others are, return True (-> new Fail n_track times)
|
# if first entry was no error but all others are, return True (-> new Fail n_track times)
|
||||||
if not previous_errors[0] and all(previous_errors[1:]):
|
if not previous_errors[0] and all(previous_errors[1:]):
|
||||||
return True
|
return True
|
||||||
# in case previous_errors exists, last item is error but not all items are error, error still active
|
# in case previous_errors exist, last item is error but not all items are error, error still active
|
||||||
elif previous_errors and previous_errors[-1] and not all(previous_errors):
|
if previous_errors and previous_errors[-1] and not all(previous_errors):
|
||||||
return 'active'
|
return 'active'
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user