Omkar008 commited on
Commit
cd0443c
·
verified ·
1 Parent(s): f3145ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('brand'):
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: