create db folder

This commit is contained in:
Believethehype 2023-11-28 21:03:07 +01:00
parent a3e074d1d2
commit e80f1712c7
2 changed files with 3 additions and 0 deletions

0
db/.gitkeep Normal file
View File

View 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 (