Обновил зависимости

This commit is contained in:
2020-03-13 23:07:39 +03:00
parent 4f3ff66760
commit 34df775b0b
2 changed files with 8 additions and 18 deletions

View File

@@ -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

View File

@@ -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()