some tests

This commit is contained in:
Alex
2023-09-27 17:54:57 +01:00
parent e6849b85d1
commit b8acb860aa
6 changed files with 114 additions and 41 deletions

View File

@@ -34,19 +34,10 @@ app.config["UPLOAD_FOLDER"] = UPLOAD_FOLDER = "inputs"
app.config["CELERY_BROKER_URL"] = settings.CELERY_BROKER_URL
app.config["CELERY_RESULT_BACKEND"] = settings.CELERY_RESULT_BACKEND
app.config["MONGO_URI"] = settings.MONGO_URI
#celery = Celery()
celery.config_from_object("application.celeryconfig")
# @celery.task(bind=True)
# def ingest(self, directory, formats, name_job, filename, user):
# resp = ingest_worker(self, directory, formats, name_job, filename, user)
# return resp
@app.route("/")
def home():
"""
@@ -63,9 +54,6 @@ def home():
# handling CORS
@app.after_request
def after_request(response):