From 520776e1cbeb5044292bb1201b0eeca885bf674e Mon Sep 17 00:00:00 2001 From: bkoschicek Date: Tue, 26 Sep 2023 15:59:55 +0200 Subject: [PATCH] fixed imports --- openatlas/api/endpoints/iiif.py | 2 +- openatlas/api/routes.py | 2 +- openatlas/views/file.py | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/openatlas/api/endpoints/iiif.py b/openatlas/api/endpoints/iiif.py index c4459347f..e9a8c7797 100644 --- a/openatlas/api/endpoints/iiif.py +++ b/openatlas/api/endpoints/iiif.py @@ -2,7 +2,7 @@ from flask import request, jsonify, Response from flask_restful import Resource -from api.resources.util import get_license_name +from openatlas.api.resources.util import get_license_name from models.entity import Entity from openatlas import app diff --git a/openatlas/api/routes.py b/openatlas/api/routes.py index 16aed8c58..a0d86f492 100644 --- a/openatlas/api/routes.py +++ b/openatlas/api/routes.py @@ -1,6 +1,6 @@ from flask_restful import Api -from api.endpoints.iiif import IIIFManifest +from openatlas.api.endpoints.iiif import IIIFManifest from openatlas.api.endpoints.content import ClassMapping, \ GetContent, SystemClassCount from openatlas.api.endpoints.special import GetGeometricEntities, \ diff --git a/openatlas/views/file.py b/openatlas/views/file.py index 0bf505448..e943e5bd0 100644 --- a/openatlas/views/file.py +++ b/openatlas/views/file.py @@ -1,12 +1,11 @@ from typing import Any, Union, Optional -from flask import g, render_template, request, send_from_directory, url_for, \ - redirect +from flask import g, render_template, request, send_from_directory, url_for from flask_babel import lazy_gettext as _ from werkzeug.utils import redirect from werkzeug.wrappers import Response -from display.util import convert_image_to_iiif, required_group +from display.util import convert_image_to_iiif from openatlas import app from openatlas.display.util import required_group from openatlas.forms.form import get_table_form