generated from hjess/PythonTemplateProject
Middelware update and footer content
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 42s
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 42s
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user