diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-28 21:55:21 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-28 21:55:21 +0100 |
commit | 227a0eb5157875e75a385118ec3485b044ccdb8a (patch) | |
tree | 137c21b9abc2cc644a87f03c36bfd7e20981d5b5 /module/plugins/Account.py | |
parent | [EasybytezCom] Remove unnecessary loadAccountInfo method (diff) | |
download | pyload-227a0eb5157875e75a385118ec3485b044ccdb8a.tar.xz |
Improve loadAccountInfo stuff
Diffstat (limited to 'module/plugins/Account.py')
-rw-r--r-- | module/plugins/Account.py | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py index 7bdca729c..4fac3525f 100644 --- a/module/plugins/Account.py +++ b/module/plugins/Account.py @@ -188,18 +188,16 @@ class Account(Base): :param req: `Request` instance :return: """ - return { - "validuntil": None, # -1 for unlimited - "login": name, - #"password": self.accounts[name]['password'], #@XXX: security - "options": self.accounts[name]['options'], - "valid": self.accounts[name]['valid'], - "trafficleft": None, # in kb, -1 for unlimited - "maxtraffic": None, - "premium": True, #useful for free accounts - "timestamp": 0, #time this info was retrieved - "type": self.__name__, - } + return {"validuntil": None, #: -1 for unlimited + "login": name, + # "password": self.accounts[name]['password'], #: commented due security reason + "options": self.accounts[name]['options'], + "valid": self.accounts[name]['valid'], + "trafficleft": None, #: in kb, -1 for unlimited + "maxtraffic": None, + "premium": False, + "timestamp": 0, #: time this info was retrieved + "type": self.__name__} def getAllAccounts(self, force=False): |