Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ supabase: Client = create_client(url, key)
|
|
| 13 |
async def get_hotel_data(hushh_id:str):
|
| 14 |
hotel_brand_frequency = {}
|
| 15 |
result = {}
|
| 16 |
-
resp = supabase.table("receipt_radar_structured_data_duplicate").select("brand,message_id,company,logo").eq("brand_category","
|
| 17 |
for ds in resp.data:
|
| 18 |
if ds.get('brand'):
|
| 19 |
result[ds.get('brand')] = {"message_id":ds.get('message_id'),"domain":ds.get('company'),"hotel_logo":ds.get('logo')}
|
|
|
|
| 13 |
async def get_hotel_data(hushh_id:str):
|
| 14 |
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('brand'):
|
| 19 |
result[ds.get('brand')] = {"message_id":ds.get('message_id'),"domain":ds.get('company'),"hotel_logo":ds.get('logo')}
|