Both csv imports work
This commit is contained in:
@@ -430,8 +430,15 @@ class CSVImporter:
|
||||
stats["existing_customers"] += 1
|
||||
|
||||
# Build reservation data from CSV row
|
||||
num_adults = int(row.get("num_adults", 1) or 1)
|
||||
num_children = int(row.get("num_children", 0) or 0)
|
||||
try:
|
||||
num_adults = int(row.get("num_adults", 1) or 1)
|
||||
except (ValueError, TypeError):
|
||||
num_adults = 1
|
||||
|
||||
try:
|
||||
num_children = int(row.get("num_children", 0) or 0)
|
||||
except (ValueError, TypeError):
|
||||
num_children = 0
|
||||
|
||||
# Extract children ages from columns (including duplicates)
|
||||
children_ages = []
|
||||
|
||||
Reference in New Issue
Block a user