units.wesnoth.org update to understand new [difficulty] tag
This commit is contained in:
parent
2aefb78ab7
commit
b0f15a08c4
1 changed files with 7 additions and 0 deletions
|
@ -215,6 +215,13 @@ def list_contents():
|
|||
d3 = campaign.get_text_val("difficulties")
|
||||
if d3:
|
||||
d += "," + d3.split(",")[0]
|
||||
else:
|
||||
difficulty = campaign.get_all(tag = "difficulty")
|
||||
if difficulty:
|
||||
d3 = difficulty[0].get_text_val("define")
|
||||
if d3:
|
||||
d += "," + d3
|
||||
|
||||
append(info, cid, d, c = campaign)
|
||||
|
||||
return info
|
||||
|
|
Loading…
Add table
Reference in a new issue