Skip to content

Commit

Permalink
Merge pull request #229 from serfend/JxTrade
Browse files Browse the repository at this point in the history
fix[trade]dict-enumerate value
  • Loading branch information
Serfend authored Jun 23, 2023
2 parents d64e877 + fb7993e commit f74bad6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/jx3/price_goods/lib/GoodsBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ def convert_value(raw: str) -> Tuple[str, int]:

@staticmethod
def convert_value_desc(raw: str) -> str:
for x in WucaiProperty.DICT_value_desc:
raw = raw.replace(x[0], x[1])
d = WucaiProperty.DICT_value_desc
for x in d:
raw = raw.replace(x, d[x])
return raw

@staticmethod
Expand Down

0 comments on commit f74bad6

Please sign in to comment.