Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ async def get_hotel_data(hushh_id:str):
|
|
| 15 |
result = {}
|
| 16 |
resp = supabase.table("receipt_radar_structured_data_duplicate").select("brand,message_id,company,logo").eq("brand_category","Hospitality").execute()
|
| 17 |
for ds in resp.data:
|
| 18 |
-
if ds.get('
|
| 19 |
result[ds.get('brand')] = {"message_id":ds.get('message_id'),"domain":ds.get('company'),"hotel_logo":ds.get('logo')}
|
| 20 |
# if arrival_city:
|
| 21 |
if ds.get('brand') in hotel_brand_frequency:
|
|
|
|
| 15 |
result = {}
|
| 16 |
resp = supabase.table("receipt_radar_structured_data_duplicate").select("brand,message_id,company,logo").eq("brand_category","Hospitality").execute()
|
| 17 |
for ds in resp.data:
|
| 18 |
+
if ds.get('company'):
|
| 19 |
result[ds.get('brand')] = {"message_id":ds.get('message_id'),"domain":ds.get('company'),"hotel_logo":ds.get('logo')}
|
| 20 |
# if arrival_city:
|
| 21 |
if ds.get('brand') in hotel_brand_frequency:
|