Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
juga
sbws
Commits
5500ddf5
Commit
5500ddf5
authored
Oct 15, 2018
by
juga
Browse files
Stop returning 1 result as seconds away from other
parent
77cc25ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/lib/v3bwfile.py
View file @
5500ddf5
...
...
@@ -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
@
staticmethod
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment