Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Charlotte <[email protected]>
  • Loading branch information
JoeyStk and charludo authored Jan 28, 2025
1 parent d7842be commit 2957a54
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions integreat_cms/matomo_api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ def get_translation_slug(
for page in pages:
for language in languages:
if page_translation := page.get_translation(language.slug):
if page.id not in translation_slugs:
translation_slugs[page.id] = {}
translation_slugs[page.id][
language.slug
] = page_translation.get_absolute_url().rstrip("/")
Expand Down

0 comments on commit 2957a54

Please sign in to comment.