Skip to content

Commit

Permalink
Merge branch 'develop' into feature/api_refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardKoschicek committed Dec 10, 2024
2 parents 0a6ee16 + 695b416 commit ea82fc9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions openatlas/models/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def save(
entity: Entity,
data: dict[str, str],
types: list[dict[str, Any]]) -> None:
from openatlas.models.entity import Link
for dict_ in types:
Link.delete_(dict_['link_id'])
SexEstimation.prepare_feature_types()
Expand Down
2 changes: 1 addition & 1 deletion openatlas/templates/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<li class="nav-item" role="presentation">
<a
class="fw-normal py-1 nav-link {% if loop.first %}active{% endif %}"
data-bs-toggle="tooltip"
data-bs-toggle="tab"
data-bs-placement="top"
title="{{ tab.tooltip }}"
role="tab"
Expand Down
6 changes: 3 additions & 3 deletions tests/test_place.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,13 @@ def test_place(self) -> None:
url_for('sex_update', id_=strati_id),
data={'Glabella': 'Female'},
follow_redirects=True)
assert b'-2.0' in rv.data
assert b'Female' in rv.data

rv = c.post(
url_for('sex_update', id_=strati_id),
data={'Glabella': 'Female'},
data={'Glabella': 'Female?'},
follow_redirects=True)
assert b'-2.0' in rv.data
assert b'Female?' in rv.data

rv = c.get(url_for('sex_update', id_=strati_id))
assert b'Glabella' in rv.data
Expand Down

0 comments on commit ea82fc9

Please sign in to comment.