From 5deded62d94c04be64d34f6b67d07803eea9b6bf Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 20 Dec 2015 18:43:15 +0100 Subject: Spare code cosmetics --- module/plugins/accounts/RapidgatorNet.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'module/plugins/accounts/RapidgatorNet.py') diff --git a/module/plugins/accounts/RapidgatorNet.py b/module/plugins/accounts/RapidgatorNet.py index e1f194afe..3057fb34c 100644 --- a/module/plugins/accounts/RapidgatorNet.py +++ b/module/plugins/accounts/RapidgatorNet.py @@ -34,17 +34,17 @@ class RapidgatorNet(Account): self.log_debug("API:USERINFO", html) - jso = json.loads(html) + json_data = json.loads(html) - if jso['response_status'] is 200: - if "reset_in" in jso['response']: - self._schedule_refresh(user, jso['response']['reset_in']) + if json_data['response_status'] is 200: + if "reset_in" in json_data['response']: + self._schedule_refresh(user, json_data['response']['reset_in']) - validuntil = jso['response']['expire_date'] - trafficleft = float(jso['response']['traffic_left']) / 1024 #@TODO: Remove `/ 1024` in 0.4.10 + validuntil = json_data['response']['expire_date'] + trafficleft = float(json_data['response']['traffic_left']) / 1024 #@TODO: Remove `/ 1024` in 0.4.10 premium = True else: - self.log_error(jso['response_details']) + self.log_error(json_data['response_details']) except Exception, e: self.log_error(e, trace=True) @@ -63,13 +63,13 @@ class RapidgatorNet(Account): self.log_debug("API:LOGIN", html) - jso = json.loads(html) + json_data = json.loads(html) - if jso['response_status'] is 200: - data['sid'] = str(jso['response']['session_id']) + if json_data['response_status'] is 200: + data['sid'] = str(json_data['response']['session_id']) return else: - self.log_error(jso['response_details']) + self.log_error(json_data['response_details']) except Exception, e: self.log_error(e, trace=True) -- cgit v1.2.3