Commit 0e690b3c authored by Thomas Monjalon's avatar Thomas Monjalon Committed by Romain Bignon

fix account listing when account ID is greater than an int

parent 420f6496
Pipeline #5 failed with stages
......@@ -32,7 +32,7 @@ class Account(object):
self.link_id = ''
def setID(self, id):
assert isinstance(id, int)
assert isinstance(id, long)
self.id = id
def setLabel(self, label): self.label = label
......@@ -64,7 +64,7 @@ class AccountsList(PageBase):
for td in fields:
if td.getAttribute('headers').startswith('Numero_'):
id = td.childNodes[1].data
account.setID(int(''.join(id.split(' '))))
account.setID(long(''.join(id.split(' '))))
elif td.getAttribute('headers').startswith('Libelle_'):
a = td.getElementsByTagName('a')
label = a[0].firstChild.data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment