mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-07-04 22:08:12 +02:00
moved the setup of the subjects to a better place
in the flask app
This commit is contained in:
@ -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
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user