Fixed research writeback bug (missing states tag).
This commit is contained in:
parent
5f0ef95b05
commit
e0e32404c5
|
@ -584,7 +584,7 @@ class GameData:
|
||||||
|
|
||||||
# Step 3 - Update research
|
# Step 3 - Update research
|
||||||
console.print('Updating research')
|
console.print('Updating research')
|
||||||
top_research_tag = self.soup.find('research', treeId=True)
|
top_research_tag = self.soup.find('research', treeId=True).find('states')
|
||||||
top_research_tag.clear()
|
top_research_tag.clear()
|
||||||
for research_item in sorted(self.research, key=lambda x:x.id):
|
for research_item in sorted(self.research, key=lambda x:x.id):
|
||||||
base_tag = self.soup.new_tag('l', attrs={'techId':research_item.id, 'paused':research_item.paused, 'activeStageIndex':research_item.active_stage})
|
base_tag = self.soup.new_tag('l', attrs={'techId':research_item.id, 'paused':research_item.paused, 'activeStageIndex':research_item.active_stage})
|
||||||
|
|
Loading…
Reference in New Issue