From 339392cfb0a47abbc67d92f3bd8240e652c21ac5 Mon Sep 17 00:00:00 2001 From: Eriks Karls Date: Tue, 13 Aug 2019 15:44:07 +0300 Subject: [PATCH] Regex bugfix --- erepublik/citizen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erepublik/citizen.py b/erepublik/citizen.py index 757a9d4..96be3fa 100644 --- a/erepublik/citizen.py +++ b/erepublik/citizen.py @@ -1900,7 +1900,7 @@ class Citizen(classes.CitizenAPI): r = self._get_economy_citizen_accounts(org_id) table = re.search(r'()', r.text, re.I | re.M | re.S) if table: - account = re.findall(r'>(\d+.\d+)<', table.group(1)) + account = re.findall(r'>\s*(\d+.\d+)\s*', table.group(1)) if account: return {"gold": account[0], "cc": account[1], 'ok': True}