php separate

This commit is contained in:
2025-12-09 13:14:27 +00:00
parent 94dfd20e84
commit 062a1d1f97
28 changed files with 4702 additions and 0 deletions

21
TODO.md Normal file
View File

@@ -0,0 +1,21 @@
TODO:
Downstream scripts need to be updated to use the `newcountyoutages` table instead of the old `countyoutages` table.
Key changes:
1. Table name is now `newcountyoutages`.
2. The `update` column has been renamed to `fetch_time`.
Affected scripts:
- `powersum.py`: Needs to be updated to query `newcountyoutages` and use `fetch_time`.
- `powercounty.py`: This script is deprecated and should be removed. All its functionality is replaced by `newpower.py`.
---
The point-based scraper `power2.py` has been refactored into `newpower2.py`.
Key changes:
1. The `power` table is now deprecated in favor of the `newpower` table.
2. The `start` column has been renamed to `start_time`.
3. The `lastchange` column has been renamed to `last_change`.
4. A new `fetch_time` column has been added to track when the record was scraped.