Commit c6ba10cd authored by juga's avatar juga
Browse files

Stop comparing min_num results with ">", it's ">="

and do not use classmethod for it, since it is only a comparison
parent 3d9f5ad0
......@@ -275,9 +275,9 @@ class V3BWLine(object):
# useful args for scaling
if success_results:
min_num_success_results = cls.min_num_results(success_results,
if not min_num_success_results:
if not len(success_results) >= min_num:
log.debug('There are no results with relays that have at least'
'{} results.'.format(min_num))
return None
results_away = \
cls.results_away_each_other(min_num_success_results, secs_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