fix retension

This commit is contained in:
2025-12-10 05:43:47 +00:00
parent ecde83c953
commit 9a083094e3

View File

@@ -90,10 +90,12 @@ class CountyPowerDB:
all_values = []
for item in outage_data:
if all(k in item for k in ['county', 'state', 'company']):
# Standardize county name to title case (e.g., "MERCER" -> "Mercer")
county_name = item['county'].title() if isinstance(item['county'], str) else item['county']
val = (
item.get('outages'),
item.get('served'),
item['county'],
county_name,
item['state'],
fetch_time,
item['company']