MCPcopy
hub / github.com/pyload/pyload / getAllUserData

Method getAllUserData

module/database/UserDatabase.py:96–102  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

94
95 @style.queue
96 def getAllUserData(db):
97 db.c.execute("SELECT name, permission, role, template, email FROM users")
98 user = {}
99 for r in db.c:
100 user[r[0]] = {"permission": r[1], "role": r[2], "template": r[3], "email": r[4]}
101
102 return user
103
104 @style.queue
105 def removeUser(db, user):

Callers

nothing calls this directly

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected