0.1.9s
This commit is contained in:
+1
-5
@@ -7,11 +7,7 @@ from system_module.gelbooru import gelbooru_date_parse
|
||||
|
||||
|
||||
class DB:
|
||||
def __init__(self, debug: bool):
|
||||
if debug:
|
||||
db_path = "data_test"
|
||||
else:
|
||||
db_path = "data"
|
||||
def __init__(self, db_path: str):
|
||||
|
||||
if not os.path.exists(db_path):
|
||||
os.makedirs(db_path)
|
||||
|
||||
Reference in New Issue
Block a user