From d2e2b127651a5a44b56337eb6d9ca246c97a208a Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 17 Jul 2015 03:03:26 +0200 Subject: Spare fixes and code cosmetics --- module/plugins/accounts/FastixRu.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'module/plugins/accounts/FastixRu.py') diff --git a/module/plugins/accounts/FastixRu.py b/module/plugins/accounts/FastixRu.py index eaf12619a..d8c992bb3 100644 --- a/module/plugins/accounts/FastixRu.py +++ b/module/plugins/accounts/FastixRu.py @@ -16,7 +16,10 @@ class FastixRu(Account): def load_account_info(self, user, req): data = self.get_account_data(user) - html = json_loads(self.load("http://fastix.ru/api_v2/", get={'apikey': data['api'], 'sub': "getaccountdetails"}), req=req) + html = json_loads(self.load("http://fastix.ru/api_v2/", + get={'apikey': data['api'], + 'sub' : "getaccountdetails"}), + req=req) points = html['points'] kb = float(points) * 1024 ** 2 / 1000 @@ -30,7 +33,10 @@ class FastixRu(Account): def login(self, user, data, req): html = self.load("https://fastix.ru/api_v2/", - get={'sub': "get_apikey", 'email': user, 'password': data['password']}, req=req) + get={'sub' : "get_apikey", + 'email' : user, + 'password': data['password']}, + req=req) api = json_loads(html) api = api['apikey'] -- cgit v1.2.3