Skip to content

Commit

Permalink
fix: total_news calculation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowtham1729 committed Dec 14, 2023
1 parent 2c7a99e commit a18f279
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion applications/data_analyzer/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def update_daily_analysis(self, news: News, date: str):
"""
INSERT INTO news_analysis
(category, symbol, date, average_sentiment, total_news, positive_news, negative_news, neutral_news, need_attention)
VALUES (%s, %s, %s, %s, 1, %s, %s, %s, %s)
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
ON CONFLICT DO NOTHING
""",
(
Expand All @@ -248,6 +248,7 @@ def update_daily_analysis(self, news: News, date: str):
0,
0,
0,
0,
False,
),
)
Expand Down

0 comments on commit a18f279

Please sign in to comment.