From 66dbb3b9ebf1d18f847e53b39c32ad5cbd674aa7 Mon Sep 17 00:00:00 2001 From: bkoschicek Date: Mon, 2 Oct 2023 15:13:11 +0200 Subject: [PATCH] refactor --- openatlas/display/display.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/openatlas/display/display.py b/openatlas/display/display.py index 33610e195..fbd445327 100644 --- a/openatlas/display/display.py +++ b/openatlas/display/display.py @@ -5,7 +5,6 @@ from flask import g, url_for from flask_babel import lazy_gettext as _ -from openatlas import app from openatlas.display.base_display import ( ActorDisplay, BaseDisplay, EventsDisplay, PlaceBaseDisplay, ReferenceBaseDisplay, TypeBaseDisplay) @@ -101,8 +100,8 @@ def add_tabs(self) -> None: super().add_tabs() entity = self.entity for name in [ - 'source', 'event', 'actor', 'place', 'feature', - 'stratigraphic_unit', 'artifact', 'reference', 'type']: + 'source', 'event', 'actor', 'place', 'feature', + 'stratigraphic_unit', 'artifact', 'reference', 'type']: self.tabs[name] = Tab(name, entity=entity) entity.image_id = entity.id if get_file_path(entity.id) else None for link_ in entity.get_links('P67'): @@ -298,8 +297,8 @@ def add_tabs(self) -> None: super().add_tabs() entity = self.entity for name in [ - 'actor', 'artifact', 'feature', 'event', 'place', - 'stratigraphic_unit', 'text', 'reference', 'file']: + 'actor', 'artifact', 'feature', 'event', 'place', + 'stratigraphic_unit', 'text', 'reference', 'file']: self.tabs[name] = Tab(name, entity=entity) for text in entity.get_linked_entities('P73', types=True): self.tabs['text'].table.rows.append([