summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/NoPremiumPl.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/NoPremiumPl.py')
-rw-r--r--module/plugins/accounts/NoPremiumPl.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/plugins/accounts/NoPremiumPl.py b/module/plugins/accounts/NoPremiumPl.py
index 0f3b5286f..49c9b7653 100644
--- a/module/plugins/accounts/NoPremiumPl.py
+++ b/module/plugins/accounts/NoPremiumPl.py
@@ -42,9 +42,8 @@ class NoPremiumPl(Account):
premium = False
valid_untill = -1
- is_premium = "expire" in result.keys() and result["expire"] is not None
- if is_premium:
+ if "expire" in result.keys() and result["expire"] is not None:
premium = True
valid_untill = mktime(datetime.fromtimestamp(int(result["expire"])).timetuple())
traffic_left = result["balance"] * 1024