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