diff options
Diffstat (limited to 'module/plugins/Account.py')
-rw-r--r-- | module/plugins/Account.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py index 2ed2325c9..7c8beec76 100644 --- a/module/plugins/Account.py +++ b/module/plugins/Account.py @@ -43,10 +43,14 @@ class Account(): def getAccountInfo(self, name): return { "validuntil": None, - "login": None, - "trafficleft": None + "login": name, + "trafficleft": None, + "type": self.__name__ } + def getAllAccounts(self): + return map(lambda t: self.getAccountInfo(t[0]), self.accounts) + def getAccountRequest(self, plugin): account = self.getAccountData(plugin) req = self.core.requestFactory.getRequest(self.__name__, account[0]) |