fix: display gender in Chinese for avatar list API

Use str(a.gender) instead of a.gender.value to return Chinese
"男"/"女" instead of English "male"/"female" in the avatar_list
endpoint, consistent with other APIs that use get_structured_info().
This commit is contained in:
Zihao Xu
2026-01-04 00:59:24 -08:00
parent b8de42aeb3
commit 233aea47d3

View File

@@ -936,7 +936,7 @@ def get_avatar_list_simple():
"name": a.name,
"sect_name": sect_name,
"realm": realm_str,
"gender": a.gender.value,
"gender": str(a.gender),
"age": a.age.age
})