Skip to content

Commit

Permalink
try jsonify
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardKoschicek committed Sep 25, 2023
1 parent b45d08a commit 7a85b4b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions openatlas/views/file.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -166,7 +165,7 @@ def getManifest(id_):
@app.route('/iiif_manifest/<int:id_>.json')
@cross_origin()
def iiif_manifest(id_: int):
return json.dumps(getManifest(id_))
return jsonify(getManifest(id_))


@app.route('/iiif/<int:id_>', methods=['GET'])
Expand Down

0 comments on commit 7a85b4b

Please sign in to comment.