amplegest / scripts /purge_brief.py
Viney's picture
fix: keep fail-closed per fact but stop zero-verified synthesis from emptying the whole brief
b419b7b
Raw
History Blame Contribute Delete
542 Bytes
"""Delete all persisted brief records for one ticker."""
from __future__ import annotations
import argparse
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
from storage.briefs_db import delete_brief
def main() -> None:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("ticker")
args = parser.parse_args()
deleted = delete_brief(args.ticker)
print(f"Deleted {deleted} row(s) for {args.ticker.upper()}.")
if __name__ == "__main__":
main()