diff options
author | 2014-01-18 18:45:13 +0100 | |
---|---|---|
committer | 2014-01-18 18:45:13 +0100 | |
commit | 453c1e55c71a96c9529ecdca1d55278cc41088d6 (patch) | |
tree | 7a516a84e5590ce5f1f3def71c24bcb14f209023 /pyload/database/UserDatabase.py | |
parent | small fixes and improvements for download engine (diff) | |
download | pyload-453c1e55c71a96c9529ecdca1d55278cc41088d6.tar.xz |
rewritten download scheduling, improved account manager, db version increased all data will be overwritten
Diffstat (limited to 'pyload/database/UserDatabase.py')
-rw-r--r-- | pyload/database/UserDatabase.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pyload/database/UserDatabase.py b/pyload/database/UserDatabase.py index 8d8381a40..14b4ae40c 100644 --- a/pyload/database/UserDatabase.py +++ b/pyload/database/UserDatabase.py @@ -44,6 +44,14 @@ class UserMethods(DatabaseMethods): self.c.execute('INSERT INTO users (name, password) VALUES (?, ?)', (user, password)) @queue + def addDebugUser(self, uid): + # just add a user with uid to db + try: + self.c.execute('INSERT INTO users (uid, name, password) VALUES (?, ?, ?)', (uid, "debugUser", random_salt())) + except: + pass + + @queue def getUserData(self, name=None, uid=None): qry = ('SELECT uid, name, email, role, permission, folder, traffic, dllimit, dlquota, ' 'hddquota, user, template FROM "users" WHERE ') |