a guest Aug 20th, 2019 81 Never
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 for row in check):
RAW Paste Data