mirror of
https://github.com/Llloooggg/Jarvis.git
synced 2026-03-06 03:56:23 +03:00
Обновил зависимости
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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()
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user