Add validity date to nettokom
This commit is contained in:
parent
b8227b69b1
commit
3f04952ce3
1 changed files with 4 additions and 2 deletions
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
from weboob.capabilities.bill import Subscription
|
from weboob.capabilities.bill import Subscription
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
from datetime import date
|
||||||
|
|
||||||
__all__ = ['HomePage']
|
__all__ = ['HomePage']
|
||||||
|
|
||||||
|
|
@ -43,8 +43,10 @@ class HomePage(BasePage):
|
||||||
self.browser.logger.debug('Found ' + phoneplan + ' has subscription type')
|
self.browser.logger.debug('Found ' + phoneplan + ' has subscription type')
|
||||||
|
|
||||||
subscription = Subscription(phone)
|
subscription = Subscription(phone)
|
||||||
subscription.label = unicode(phone + u' - ' + credit + u' - ' + expiredate + u' - ' + phoneplan)
|
subscription.label = unicode(phone + u' - ' + credit + u' - ' + phoneplan)
|
||||||
subscription.subscriber = owner
|
subscription.subscriber = owner
|
||||||
|
expiredate = date(*reversed([int(x) for x in expiredate.split(".")]))
|
||||||
|
subscription.validity = expiredate
|
||||||
|
|
||||||
l.append(subscription)
|
l.append(subscription)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue