moved the setup of the subjects to a better place

in the flask app
This commit is contained in:
Karma Riuk
2025-05-20 14:26:53 +02:00
parent f6739586b4
commit 187cde7079
2 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,10 @@ from dotenv import load_dotenv
load_dotenv()
app = Flask(__name__, static_folder='../public', static_url_path='/')
with app.app_context():
Subject.setup()
CORS(app)
# Register routes

View File

@ -144,6 +144,3 @@ class Subject:
def _rm_results_file(self):
if os.path.exists(self.full_path):
os.remove(self.full_path)
Subject.setup()