async def add_order(self, order, name, tg, number, amount, promo, date):
with self.connection:
return self.cursor.execute(f'INSERT INTO orders (order, name, tg, number, amount, promo, date) VALUES (?, ?, ?, ?, ?, ?, ?)',
[order, name, tg, number, amount, promo, date])
return self.cursor.execute(f'INSERT INTO orders ("order", name, tg, number, amount, promo, date) VALUES (?, ?, ?, ?, ?, ?, ?)',
[order, name, tg, number, amount, promo, date])
async def add_order(self, order, name, tg, number, amount, promo, date):
with self.connection:
return self.cursor.execute('INSERT INTO orders ("order", name, tg, number, amount, promo, date) VALUES (?, ?, ?, ?, ?, ?, ?)', (order, name, tg, number, amount, promo, date))