Release v2.17.0: Synchronize deploy scripts, mobile UI, architecture atlas, and regression test suite
This commit is contained in:
1 parent
d3240b3bd1
commit
352f54f30a
24 files changed
+2497
-731
No files matched your search
@@ -148,16 +148,21 @@ def build_daily_portfolio_brief(
|
||||
ts_bundle = build_quant_timeseries_bundle(write_files=False)
|
||||
macro_bundle = build_macro_indicators_bundle(allow_live_network=allow_live_network, write_files=False)
|
||||
|
||||
state_path = cfg.archive_dir.parent / "daily-brief-state.json"
|
||||
state_path = cfg.core_dir / "site" / "quant" / "daily-brief-state.json"
|
||||
legacy_state_paths = (
|
||||
cfg.archive_dir / "daily-brief-state.json",
|
||||
cfg.archive_dir.parent / "daily-brief-state.json",
|
||||
)
|
||||
out_json_path = cfg.core_dir / "site" / "quant" / "daily-brief-latest.json"
|
||||
out_js_path = cfg.core_dir / "site" / "quant" / "daily-brief-data.js"
|
||||
|
||||
with ReadOnlyIsolationGuard(cfg.read_only_files) as guard:
|
||||
# Load extant prior state if present
|
||||
# Load extant prior state if present (falling back to legacy path if needed)
|
||||
prior_state: dict[str, Any] = {}
|
||||
if state_path.is_file():
|
||||
active_read_state_path = state_path if state_path.is_file() else next((p for p in legacy_state_paths if p.is_file()), state_path)
|
||||
if active_read_state_path.is_file():
|
||||
try:
|
||||
prior_state = json.loads(state_path.read_text(encoding="utf-8"))
|
||||
prior_state = json.loads(active_read_state_path.read_text(encoding="utf-8"))
|
||||
except Exception:
|
||||
prior_state = {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user