mirror of
https://github.com/Llloooggg/Jarvis.git
synced 2026-03-06 03:56:23 +03:00
18 lines
332 B
Python
18 lines
332 B
Python
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()
|
|
|