Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def checkDB(user):
- import sqlite3
- Connect = sqlite3.connect('databs.db')
- Cursor = Connect.cursor()
- sql = """SELECT ID FROM datauser WHERE ID = ?"""
- Cursor.execute(sql, (user,))
- check = Cursor.fetchall()
- if user_id in (row[0] for row in check):
- print('1')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement