Small clean-up of the session classes

This commit is contained in:
Lonami Exo
2018-03-03 12:51:35 +01:00
parent 1e420f7f91
commit a9c83250a1
3 changed files with 26 additions and 29 deletions

View File

@@ -276,18 +276,15 @@ class SQLiteSession(MemorySession):
def get_entity_rows_by_username(self, username):
return self._fetchone_entity(
'select id, hash from entities where username=?',
(username,))
'select id, hash from entities where username=?', (username,))
def get_entity_rows_by_name(self, name):
return self._fetchone_entity(
'select id, hash from entities where name=?',
(name,))
'select id, hash from entities where name=?', (name,))
def get_entity_rows_by_id(self, id):
return self._fetchone_entity(
'select id, hash from entities where id=?',
(id,))
'select id, hash from entities where id=?', (id,))
# File processing