Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardKoschicek committed Oct 2, 2023
1 parent 931a378 commit 66dbb3b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions openatlas/display/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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'):
Expand Down Expand Up @@ -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([
Expand Down

0 comments on commit 66dbb3b

Please sign in to comment.