From 7a85b4b0c37d1c532775b7ac9681b97e9214a9a8 Mon Sep 17 00:00:00 2001 From: BernhardKoschicek Date: Mon, 25 Sep 2023 17:48:23 +0200 Subject: [PATCH] try jsonify --- openatlas/views/file.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/openatlas/views/file.py b/openatlas/views/file.py index c94e7f142..25a654e84 100644 --- a/openatlas/views/file.py +++ b/openatlas/views/file.py @@ -1,11 +1,10 @@ -import json import os import subprocess from pathlib import Path from typing import Any, Union, Optional -import requests -from flask import g, render_template, request, send_from_directory, url_for +from flask import g, render_template, request, send_from_directory, url_for, \ + jsonify from flask_babel import lazy_gettext as _ from flask_cors import cross_origin from werkzeug.utils import redirect @@ -166,7 +165,7 @@ def getManifest(id_): @app.route('/iiif_manifest/.json') @cross_origin() def iiif_manifest(id_: int): - return json.dumps(getManifest(id_)) + return jsonify(getManifest(id_)) @app.route('/iiif/', methods=['GET'])