diff --git a/ikabot/function/constructionList.py b/ikabot/function/constructionList.py index 2323f834..8c0504d6 100644 --- a/ikabot/function/constructionList.py +++ b/ikabot/function/constructionList.py @@ -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'([\d,\.]*)', match) + costs = re.findall(r'([\d,\.\s\xa0]*)', 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