feat: expand screeners and stabilize interactive feedback

This commit is contained in:
leefer
2026-07-28 22:47:50 +08:00
parent f4b2d7152a
commit 1cc80583b3
22 changed files with 2707 additions and 509 deletions
+5
View File
@@ -24,6 +24,9 @@ class SnapshotDatabase:
def save_data_snapshot(self, kind, cache_key, _source, payload):
self.aliases[(kind, cache_key)] = copy.deepcopy(payload)
def save_snapshot(self, _trade_date, _source, payload):
self.snapshot = copy.deepcopy(payload)
def get_latest_real_snapshot(self, _trade_date, strictly_before=False):
return copy.deepcopy(self.latest)
@@ -43,6 +46,7 @@ class DashboardCacheTests(unittest.TestCase):
"sentiment_phase": "retreat",
"sentiment_direction": "cooling",
"sentiment_components": {},
"sentiment_engine_version": 2,
},
}
service = self.service(snapshot)
@@ -71,6 +75,7 @@ class DashboardCacheTests(unittest.TestCase):
"sentiment_phase": "ice",
"sentiment_direction": "cooling",
"sentiment_components": {},
"sentiment_engine_version": 2,
})
return payload