Fixed research writeback bug (missing states tag).

This commit is contained in:
Chris Davoren 2023-09-05 14:58:04 +10:00
parent 5f0ef95b05
commit e0e32404c5
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ class GameData:
# Step 3 - Update 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()
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})