MCPcopy Index your code
hub / github.com/tiny-pilot/tinypilot / get

Method get

app/db/users.py:68–75  ·  view source on GitHub ↗
(self, username)

Source from the content-addressed store, hash-verified

66 self._db_connection.execute('DELETE FROM users')
67
68 def get(self, username):
69 cursor = self._db_connection.execute(
70 'SELECT username, auth_role, credentials_last_changed'
71 ' FROM users WHERE username=? LIMIT 1', [username])
72 row = cursor.fetchone()
73 if not row:
74 raise UserDoesNotExistError(f'User does not exist: {username}')
75 return row[0], row[1], row[2]
76
77 def get_all(self):
78 cursor = self._db_connection.execute(

Callers 15

handler_with_auth_checkFunction · 0.80
auth_postFunction · 0.80
update_getFunction · 0.80
get_accountFunction · 0.80
get_usernameFunction · 0.80
_is_standalone_modeFunction · 0.80
env.pyFile · 0.80
main.pyFile · 0.80
processJsonResponseFunction · 0.80
handleEventFunction · 0.80
sendMessageFunction · 0.80

Calls 1