From 91aa03a2261a7a7c2d381916a8bf90ea4c845a0a Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Mon, 7 Nov 2022 20:02:30 +1000 Subject: [PATCH] =?UTF-8?q?=D1=82=D1=81=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dickpick.db | Bin 12288 -> 0 bytes sql.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 dickpick.db diff --git a/dickpick.db b/dickpick.db deleted file mode 100644 index 451914551ba6c77e49b6164a865973b0e256d385..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI#&r8EF6u|MMii$A0TdxniI2eL>7Oc|4bc%Kb-6?c7LU2ED?LfTw2m1ebw2ADz z^TziadK$XM%G+W&D;v2`U8S|U5>ZO&cI>rd9lqXQ7wzopO`+A<^KB>o zRZ;9z?BbtIAFz)A0tg_000IagfB*srAb`MD3rzH3k|g^3q$wv;yQ=N74k^0Hv$V*h zNUw*Pgr(DvjjLqvP{?CGxKH!3+-2i_*f;ZXW~InpioR6t_1)C&%lf0eUUZOLCR(|9 zWk2hWY1`SGa@8zCZT|my9wy({A9>G?PhFn~1Q0*~0R#|0009ILKmY**5ZG0LV}CLF c|6P4v?u7sX2q1s}0tg_000IagfItxV1AhWITmS$7 diff --git a/sql.py b/sql.py index d4abeb3..6b1e2cf 100644 --- a/sql.py +++ b/sql.py @@ -7,11 +7,11 @@ async def db_start(): #подключение к бд db = sq.connect('dickpick.db') cur = db.cursor() - cur.execute(''''CREATE TABLE IF NOT EXISTS users(id INTEGER PRIMARY KEY, users_id INTEGER, user_name TEXT, dick_size INTEGER)''') + cur.execute(''''CREATE TABLE IF NOT EXISTS users(id INTEGER PRIMARY KEY, users_id INTEGER, user_name TEXT)''') db.commit() async def add_user(): - cur.execute('''INSERT INTO users (users_id, user_name) VALUES (?)''',[id1, fullname1]) + cur.execute('''INSERT INTO users (users_id, user_name) VALUES (?, ?)''',[id1, fullname1]) db.commit() async def close():