Cailean Finn 6 months ago
parent
commit
067524a952
  1. 2
      app.py

2
app.py

@ -310,6 +310,8 @@ class WikiApp(Flask):
main_navigation_elements = {}
for page_title, page_data in data['query']['results'].items():
title = page_data.get('fulltext', '')
if title == 'Publications':
title = 'publications'
main_navigation_elements[page_title] = {'title':title}
reversed_main_navigation = list(main_navigation_elements.items())[::-1]
reversed_main_navigation = dict(reversed_main_navigation)

Loading…
Cancel
Save