File "bot.py", line 13, in product
with connect('database.db') as connection:
NameError: name 'connect' is not defined
def product(name ):
with connect('database.db') as connection:
cursor = connection.cursor()
cursor.execute("SELECT * FROM catalog WHERE name = ? ", (name,))
result = cursor.fetchone()
return result