Middelware update and footer content
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 42s

This commit is contained in:
2024-12-20 22:39:00 +01:00
parent d58e5b0d12
commit c8ad950d98

View File

@@ -70,10 +70,7 @@ class RouteToWeb:
# Find den aktuelle og næste kategori
current_path = request.url.path.split("/")[-1]
next_category = None
print(current_path)
for index, category in enumerate( categories ):
print(category)
if category["path"] == current_path:
# Find næste kategori (cirkulær, hvis det er den sidste)
next_index = (index + 1) % len( categories )