Commit 5500ddf5 authored by juga's avatar juga
Browse files

Stop returning 1 result as seconds away from other

parent 77cc25ea
......@@ -339,6 +339,10 @@ class V3BWLine(object):
for r in reversed(results[:-1]):
if abs(results_away[0].time - r.time) > secs_away:
results_away.insert(0, r)
# if there is only 1 result, is the one inserted at the beginning,
# so there are no results away from each other
if len(results_away) < 2:
return None
return results_away
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment