Spaces:
Runtime error
Runtime error
Update foodlist.py
#3
by onefan - opened
- foodlist.py +2 -1
foodlist.py
CHANGED
|
@@ -56,7 +56,8 @@ def get_data(query, tag, cent):
|
|
| 56 |
js['area'] = item['area']
|
| 57 |
js['category'] = query
|
| 58 |
js['tag_drop'] = item['detail_info']['tag']
|
| 59 |
-
|
|
|
|
| 60 |
js['overall_rating'] = "评分:" + item['detail_info']['overall_rating']
|
| 61 |
else:
|
| 62 |
js['overall_rating'] = " "
|
|
|
|
| 56 |
js['area'] = item['area']
|
| 57 |
js['category'] = query
|
| 58 |
js['tag_drop'] = item['detail_info']['tag']
|
| 59 |
+
|
| 60 |
+
if 'overall_rating' in item['detail_info']:
|
| 61 |
js['overall_rating'] = "评分:" + item['detail_info']['overall_rating']
|
| 62 |
else:
|
| 63 |
js['overall_rating'] = " "
|