Update aggregator.py
Browse files- aggregator.py +2 -2
aggregator.py
CHANGED
@@ -179,8 +179,8 @@ def get_articles_sentiment(ticker, model):
|
|
179 |
if len(vantage_negatives) > 0:
|
180 |
vantage_negative_score_mean = float(sum(d['score'] for d in vantage_negatives)) / len(vantage_negatives)
|
181 |
|
182 |
-
total_positives = len(bezinga_positives) + len(finhub_positives) + len(
|
183 |
-
total_negatives = len(bezinga_negatives) + len(finhub_negatives) + len(
|
184 |
|
185 |
results_dict = {
|
186 |
"bezinga": {
|
|
|
179 |
if len(vantage_negatives) > 0:
|
180 |
vantage_negative_score_mean = float(sum(d['score'] for d in vantage_negatives)) / len(vantage_negatives)
|
181 |
|
182 |
+
total_positives = len(bezinga_positives) + len(finhub_positives) + len(newsapi_positives) + len(newsdata_positives) + len(vantage_positives)
|
183 |
+
total_negatives = len(bezinga_negatives) + len(finhub_negatives) + len(newsapi_negatives) + len(newsdata_negatives) + len(vantage_negatives)
|
184 |
|
185 |
results_dict = {
|
186 |
"bezinga": {
|