fix retension
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user