feat: add disney_area column and resort area mapping
- Add DISNEY_AREA_MAP in parser.py mapping 40+ Disney properties to 8 resort areas - Add disney_area to parse_customer() output, resolver after disney_park - Update db_writer.py schema: ORDERED_COLUMNS, AUTO_COLUMNS, COLUMN_TYPES - Add /api/status endpoint query for by_disney_area distribution - Add area row to web dashboard UI - Auto-migration adds column to existing databases
This commit is contained in:
@@ -47,6 +47,7 @@ AUTO_FIELDS = {
|
||||
"location_area",
|
||||
"dex_report_date",
|
||||
"disney_park",
|
||||
"disney_area",
|
||||
"remote_pricing_status",
|
||||
"alerts",
|
||||
"telemetry_provider",
|
||||
@@ -89,6 +90,7 @@ ALL_COLUMNS = [
|
||||
"deployed", # preserve
|
||||
"pulled_date", # preserve
|
||||
"disney_park", # auto
|
||||
"disney_area", # auto
|
||||
"remote_pricing_status", # auto
|
||||
"alerts", # auto
|
||||
"telemetry_provider", # auto
|
||||
@@ -130,6 +132,7 @@ COLUMN_TYPES = {
|
||||
"deployed": "INTEGER",
|
||||
"pulled_date": "TEXT",
|
||||
"disney_park": "TEXT",
|
||||
"disney_area": "TEXT",
|
||||
"remote_pricing_status": "TEXT",
|
||||
"alerts": "TEXT",
|
||||
"telemetry_provider": "TEXT",
|
||||
|
||||
Reference in New Issue
Block a user