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

Method delete

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

Source from the content-addressed store, hash-verified

57 raise UserDoesNotExistError(f'User does not exist: {username}')
58
59 def delete(self, username):
60 cursor = self._db_connection.execute(
61 'DELETE FROM users WHERE username = ?', [username])
62 if cursor.rowcount == 0:
63 raise UserDoesNotExistError(f'User does not exist: {username}')
64
65 def delete_all(self):
66 self._db_connection.execute('DELETE FROM users')

Callers 5

delete_accountFunction · 0.80
trackStatusMethod · 0.80
handleEventFunction · 0.80
destroyHandleFunction · 0.80
adapter.min.jsFile · 0.80

Calls 1

Tested by

no test coverage detected