import sys from pathlib import Path sys.path.append(str(Path("backend").resolve())) from nifty_backend.runtime import update_live_accuracy, load_live_accuracy, latest_parquet_date, NIFTY_1D_PATH latest_date = latest_parquet_date(NIFTY_1D_PATH) if latest_date: print(f"Latest date: {latest_date}") ledger = load_live_accuracy() print("Before:", ledger) res = update_live_accuracy(latest_date) print("After:", res) else: print("No daily data.")