fix for generating the graph where scores of -1 were included which shouldn't

master
Ruben 2020-10-21 10:56:15 +02:00
parent ef5adec178
commit 6a9ed46288
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ def plot_graph(filename, type_graph, output_filename):
for t in my_techniques.values(): for t in my_techniques.values():
for item in t[type_graph]: for item in t[type_graph]:
date = get_latest_date(item) date = get_latest_date(item)
if date: score = get_latest_score(item)
if date and score > 0:
yyyymm = date.strftime('%Y-%m') yyyymm = date.strftime('%Y-%m')
graph_values.append({'date': yyyymm, 'count': 1}) graph_values.append({'date': yyyymm, 'count': 1})