mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-06-26 06:00:53 +02:00
create db folder
This commit is contained in:
parent
a3e074d1d2
commit
e80f1712c7
0
db/.gitkeep
Normal file
0
db/.gitkeep
Normal file
@ -26,6 +26,9 @@ class User:
|
||||
|
||||
def create_sql_table(db):
|
||||
try:
|
||||
import os
|
||||
if not os.path.exists(r'.\db'):
|
||||
os.makedirs(r'.\db')
|
||||
con = sqlite3.connect(db)
|
||||
cur = con.cursor()
|
||||
cur.execute(""" CREATE TABLE IF NOT EXISTS users (
|
||||
|
Loading…
x
Reference in New Issue
Block a user