Andreagus commited on
Commit
1d9007f
1 Parent(s): f24b785

Update aggregator.py

Browse files
Files changed (1) hide show
  1. 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(marketaux_positives) + len(newsapi_positives) + len(newsdata_positives) + len(vantage_positives)
183
- total_negatives = len(bezinga_negatives) + len(finhub_negatives) + len(marketaux_negatives) + len(newsapi_negatives) + len(newsdata_negatives) + len(vantage_negatives)
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": {