refactor(storage): remove duplicate watchlist query

This commit is contained in:
leefer
2026-07-30 12:07:05 +08:00
parent 67e279a1d5
commit e0b065e38b
4 changed files with 17 additions and 19 deletions
+3 -2
View File
@@ -66,6 +66,7 @@ def build_container(settings: Settings) -> ApplicationContainer:
credentials = SystemCredentialService(database, credential_repository, cipher)
tushare = TushareProvider(lambda: credentials.get("tushare_token"))
market_repository = MarketRepository()
review_repository = ReviewRepository()
gateway = DataGateway(
database,
market_repository,
@@ -82,7 +83,7 @@ def build_container(settings: Settings) -> ApplicationContainer:
market = MarketService(
gateway,
MarketSnapshotService(database, market_repository, gateway),
MarketInsightService(database, market_repository, gateway),
MarketInsightService(database, market_repository, review_repository, gateway),
)
accounts = AccountService(database, account_repository, PasswordHasher(), cipher)
memberships = MembershipService(database, account_repository)
@@ -110,7 +111,7 @@ def build_container(settings: Settings) -> ApplicationContainer:
llm,
PROJECT_ROOT / "config" / "heaven" / "iching_zh.json",
)
review = ReviewService(database, ReviewRepository(), gateway, screener, llm)
review = ReviewService(database, review_repository, gateway, screener, llm)
jobs = JobService(database, JobRepository())
events = MarketEventService(database, market_repository, gateway)
operations = OperationsService(