change retention to 1 year

This commit is contained in:
2025-12-07 15:42:25 +00:00
parent 367274085b
commit 882e8bd983

View File

@@ -139,7 +139,7 @@ class CountyPowerDB:
AND c.state = newcountyoutages.state
AND newcountyoutages.cwa IS NULL
""")
cursor.execute("DELETE FROM newcountyoutages WHERE fetch_time < NOW() - INTERVAL '30 days'")
cursor.execute("DELETE FROM newcountyoutages WHERE fetch_time < NOW() - INTERVAL '365 days'")
logger.info("County post-processing complete.")
# --- PROVIDERS ---