From 34df775b0be44b0e64106ff07b72efa7529749f8 Mon Sep 17 00:00:00 2001 From: burzuf Date: Fri, 13 Mar 2020 23:07:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 9 ++++++++- user_registration.py | 17 ----------------- 2 files changed, 8 insertions(+), 18 deletions(-) delete mode 100644 user_registration.py diff --git a/requirements.txt b/requirements.txt index 7e2762c..8f8c054 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,8 @@ -flask == 1.1.1 +click==7.1.1 +Flask==1.1.1 +Flask-SQLAlchemy==2.4.1 +itsdangerous==1.1.0 +Jinja2==2.11.1 +MarkupSafe==1.1.1 +SQLAlchemy==1.3.15 +Werkzeug==1.0.0 diff --git a/user_registration.py b/user_registration.py deleted file mode 100644 index 2ee0af4..0000000 --- a/user_registration.py +++ /dev/null @@ -1,17 +0,0 @@ -import sqlite3 as sql -import json - - -db = "data.db" - -with open("pkg.json") as req: - json.dump(data, write_file) - - -def add_user(login, hash_password): - con = sql.connect(db) - cur = con.cursor() - cur.execute("INSERT INTO Users (UserLogin , UserPass) VALUES (?,?)", (login, hash_password)) - con.commit() - con.close() -