Esempio n. 1
0
 def contains(user_id):
     DB.exec_command(f'SELECT * FROM addresses WHERE UserId={user_id}',
                     False)
     return cur.fetchone()
Esempio n. 2
0
 def get(user_id):
     DB.exec_command(f'SELECT GroupName FROM groups WHERE UserId={user_id}', False)
     return cur.fetchone()
Esempio n. 3
0
 def get_hint_shown(user_id):
     DB.exec_command(f'SELECT HintShown FROM portal WHERE UserId={user_id}',
                     False)
     return cur.fetchone()
Esempio n. 4
0
 def set_hint_shown(user_id):
     DB.exec_command(
         f'UPDATE portal SET HintShown=1 WHERE UserId={user_id}')
     return cur.fetchone()
Esempio n. 5
0
 def get(user_id):
     DB.exec_command(
         f'SELECT Login, Password FROM portal WHERE UserId={user_id}',
         False)
     return cur.fetchone()