summaryrefslogtreecommitdiff
path: root/services/news-collector
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-02 16:02:59 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-02 16:02:59 +0900
commitc0496919e91f110aeed7bc47b24ebc3b8348ee81 (patch)
tree01325253c4408a8637098161791f06b2f2a5b726 /services/news-collector
parentbf4afbc0a3cc4e847ef01840365fd6a6ae9c142f (diff)
fix: remove SecretStr field overrides in service subclass configs
StrategyConfig and NewsCollectorConfig redefined anthropic_api_key and finnhub_api_key as plain str, shadowing the parent SecretStr type. This caused AttributeError at runtime when .get_secret_value() was called. The fields are already inherited from Settings — no need to redeclare.
Diffstat (limited to 'services/news-collector')
-rw-r--r--services/news-collector/src/news_collector/config.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/services/news-collector/src/news_collector/config.py b/services/news-collector/src/news_collector/config.py
index 70d98f1..6e78eba 100644
--- a/services/news-collector/src/news_collector/config.py
+++ b/services/news-collector/src/news_collector/config.py
@@ -5,6 +5,3 @@ from shared.config import Settings
class NewsCollectorConfig(Settings):
health_port: int = 8084
- finnhub_api_key: str = ""
- news_poll_interval: int = 300
- sentiment_aggregate_interval: int = 900