diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-16 12:12:14 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-16 12:12:14 +0200 |
commit | 5d26b3f5c3b18d916b2ea24a22770cf62e207a50 (patch) | |
tree | 78ab9dc281a79cadca5629dd9085a974b3251acd /module/plugins/accounts/SimplyPremiumCom.py | |
parent | [Webui] Fix wrong trafficleft format (diff) | |
download | pyload-5d26b3f5c3b18d916b2ea24a22770cf62e207a50.tar.xz |
Fix trafficleft size in some account plugins
Diffstat (limited to 'module/plugins/accounts/SimplyPremiumCom.py')
-rw-r--r-- | module/plugins/accounts/SimplyPremiumCom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/accounts/SimplyPremiumCom.py b/module/plugins/accounts/SimplyPremiumCom.py index 442aaa9f3..2fe41abef 100644 --- a/module/plugins/accounts/SimplyPremiumCom.py +++ b/module/plugins/accounts/SimplyPremiumCom.py @@ -25,8 +25,8 @@ class SimplyPremiumCom(Account): #Time package validuntil = float(json_data['result']['timeend']) #Traffic package - # {"trafficleft": int(traffic) / 1024, "validuntil": -1} - #trafficleft = int(json_data['result']['traffic'] / 1024) + # {"trafficleft": int(traffic), "validuntil": -1} + #trafficleft = int(json_data['result']['traffic']) #return {"premium": True, "validuntil": validuntil, "trafficleft": trafficleft} return {"premium": True, "validuntil": validuntil} |