This commit is contained in:
parent
692960076d
commit
8865303d0c
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ class broker:
|
||||||
if not os.path.isfile(data_path):
|
if not os.path.isfile(data_path):
|
||||||
print("Creating database file...")
|
print("Creating database file...")
|
||||||
open(data_path, "w").write("")
|
open(data_path, "w").write("")
|
||||||
self.conn = sqlite3.connect(data_path)
|
self.conn = sqlite3.connect(data_path, check_same_thread=False)
|
||||||
self.fnet = Fernet(fernet_key)
|
self.fnet = Fernet(fernet_key)
|
||||||
db = self.conn.cursor()
|
db = self.conn.cursor()
|
||||||
db.execute("""CREATE table IF NOT EXISTS bans (ip varchar(255), reason varchar(255))""")
|
db.execute("""CREATE table IF NOT EXISTS bans (ip varchar(255), reason varchar(255))""")
|
||||||
|
|
Loading…
Add table
Reference in a new issue