Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recruit: convert new tier format to digit #389

Closed
wants to merge 1 commit into from
Closed

recruit: convert new tier format to digit #389

wants to merge 1 commit into from

Conversation

ZhaoZuohong
Copy link
Contributor

公招使用自动更新的数据。其中,干员的星级从数字变成了 TIER_1 这样的格式,导致公招功能失效了。对此字段的数据进行格式转换,即可解决此问题。

@@ -184,6 +184,7 @@ def get_recruit_database_by_game_data():
tag_list = [profession_map.get(character['profession'])]
tag_list += position_map.get(character['position'], [])
tag_list += character['tagList']
character['rarity'] = int(character['rarity'][5]) - 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里用 dict 似乎更好?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没懂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants