Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def get_bookings():
|
|
| 26 |
res = supabase.table("bookings").select("*").order("created_at", desc=True).execute()
|
| 27 |
if not res.data: return pd.DataFrame()
|
| 28 |
df = pd.DataFrame(res.data)
|
| 29 |
-
cols = ['id', '
|
| 30 |
for c in cols:
|
| 31 |
if c not in df.columns: df[c] = ""
|
| 32 |
return df[cols]
|
|
|
|
| 26 |
res = supabase.table("bookings").select("*").order("created_at", desc=True).execute()
|
| 27 |
if not res.data: return pd.DataFrame()
|
| 28 |
df = pd.DataFrame(res.data)
|
| 29 |
+
cols = ['id', 'date', 'time', 'name', 'tel', 'email', 'pax', 'remarks', 'status', 'user_id']
|
| 30 |
for c in cols:
|
| 31 |
if c not in df.columns: df[c] = ""
|
| 32 |
return df[cols]
|