From c7b215fccaaba7bb52fca1e6e55cddfdc5851609 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 15 Dec 2023 15:52:44 +0000 Subject: [PATCH] setup.py: Remove unused and broken -d arg --- utils/setup.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/utils/setup.py b/utils/setup.py index ca258506..c5b6be7d 100644 --- a/utils/setup.py +++ b/utils/setup.py @@ -20,11 +20,9 @@ import os import sys - if not "FLASK_CONFIG" in os.environ: os.environ["FLASK_CONFIG"] = "../config.cfg" -delete_db = len(sys.argv) >= 2 and sys.argv[1].strip() == "-d" create_db = not (len(sys.argv) >= 2 and sys.argv[1].strip() == "-o") test_data = len(sys.argv) >= 2 and sys.argv[1].strip() == "-t" or not create_db @@ -36,9 +34,6 @@ sys.path.insert(0,parentdir) from app.models import db from app.default_data import populate, populate_test_data -if delete_db and os.path.isfile("db.sqlite"): - os.remove("db.sqlite") - from app import app with app.app_context(): if create_db: