From e7be68bf1035baf630aa7532284fde6f426aa3d6 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 9 Mar 2012 12:38:59 +0100 Subject: [PATCH] Return int for permission settings --- couchpotato/environment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/environment.py b/couchpotato/environment.py index 1ac62b6a..ac256c18 100644 --- a/couchpotato/environment.py +++ b/couchpotato/environment.py @@ -65,9 +65,9 @@ class Env(object): def getPermission(setting_type): perm = Env.get('settings').get('permission_%s' % setting_type, default = '0777') if perm[0] == '0': - return oct(int(perm, 8)) + return int(perm, 8) else: - return oct(int(perm)) + return int(perm) @staticmethod def fireEvent(*args, **kwargs):