Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def get_species_list(furry_data, top_category, sub_category):
|
|
| 41 |
species = furry_data[top_category][sub_category]
|
| 42 |
# 检查 species 是否是列表,并且每个元素是否有 "Name" 字段
|
| 43 |
if isinstance(species, list) and all(isinstance(item, dict) and "Name" in item for item in species):
|
| 44 |
-
return [item "Name" for item in species]
|
| 45 |
else:
|
| 46 |
print(f"[DEBUG] Unexpected structure for species: {species}")
|
| 47 |
return []
|
|
|
|
| 41 |
species = furry_data[top_category][sub_category]
|
| 42 |
# 检查 species 是否是列表,并且每个元素是否有 "Name" 字段
|
| 43 |
if isinstance(species, list) and all(isinstance(item, dict) and "Name" in item for item in species):
|
| 44 |
+
return [item ["Name"] for item in species]
|
| 45 |
else:
|
| 46 |
print(f"[DEBUG] Unexpected structure for species: {species}")
|
| 47 |
return []
|