change retention to 1 year
This commit is contained in:
@@ -139,7 +139,7 @@ class CountyPowerDB:
|
|||||||
AND c.state = newcountyoutages.state
|
AND c.state = newcountyoutages.state
|
||||||
AND newcountyoutages.cwa IS NULL
|
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.")
|
logger.info("County post-processing complete.")
|
||||||
|
|
||||||
# --- PROVIDERS ---
|
# --- PROVIDERS ---
|
||||||
|
|||||||
Reference in New Issue
Block a user