Skip to content

Commit

Permalink
Update constructionList.py (#304)
Browse files Browse the repository at this point in the history
Another fix for constructionList.py
  • Loading branch information
Kamusksn authored Jan 27, 2025
1 parent 7dd8377 commit 0d05ff8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ikabot/function/constructionList.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ def getResourcesNeeded(session, city, building, current_level, final_level):

levels_to_upgrade += 1
# get the costs for the current level
costs = re.findall(r'<td class="costs"><div.*>([\d,\.]*)</div></div></td>', match)
costs = re.findall(r'<td class="costs"><div.*>([\d,\.\s\xa0]*)</div></div></td>', match)
# delete blank spaces (\xa0) in costs
costs = [value.replace('\xa0', '').replace(' ', '') for value in costs]

for i in range(len(costs)):
# get hash from CDN images to identify the resource type
Expand Down

0 comments on commit 0d05ff8

Please sign in to comment.