Add an id for balance objects
This commit is contained in:
parent
a41d1a70ee
commit
d309ca0e96
1 changed files with 5 additions and 1 deletions
|
|
@ -99,5 +99,9 @@ class LeclercMobileBackend(BaseBackend, ICapBill):
|
||||||
return self.browser.readurl(bill._url)
|
return self.browser.readurl(bill._url)
|
||||||
|
|
||||||
def get_balance(self, subscription):
|
def get_balance(self, subscription):
|
||||||
|
if not isinstance(subscription, Subscription):
|
||||||
|
subscription = self.get_subscription(subscription)
|
||||||
with self.browser:
|
with self.browser:
|
||||||
return self.browser.get_balance()
|
balance = self.browser.get_balance()
|
||||||
|
balance.id = "%s-balance" % subscription.id
|
||||||
|
return balance
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue