PSNbst commited on
Commit
4e8b643
·
verified ·
1 Parent(s): a8a3525

Update app.py

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