summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyload/setup/Setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/setup/Setup.py b/pyload/setup/Setup.py
index 1af9f0d1d..94e7dbd3b 100644
--- a/pyload/setup/Setup.py
+++ b/pyload/setup/Setup.py
@@ -267,7 +267,7 @@ class Setup():
password = self.ask("", "", password=True)
admin = self.ask("Admin?", self.yes, bool=True)
- self.db.addUser(username, password, Role.Admin if admin else Role.User, 0b1111111)
+ self.db.addUser(username, password, Role.Admin if admin else Role.User, int('1111111', 2))
elif action == "2":
print ""
print _("Users")
@@ -291,7 +291,7 @@ class Setup():
def addUser(self, username, password, role=Role.Admin):
self.openDB()
try:
- self.db.addUser(username, password, role, 0b1111111)
+ self.db.addUser(username, password, role, int('1111111', 2))
finally:
self.closeDB()