Skip to content
Snippets Groups Projects

Resolve "test_main_app sollte auch funktionieren wenn man die die namen test und test.app vertauscht"

Merged slobinger requested to merge 12-bugfix-test_main_app into master
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
2
@@ -35,7 +35,7 @@ class SAMSHub:
raise TypeError('Argument app has to be a SAMSApp.')
self._apps[app.name] = app
self._appList.append(app)
if app.name is self._config.get('main_app'):
if app.name == self._config.get('main_app'):
self._flaskApp.register_blueprint(app.blueprint)
else:
self._flaskApp.register_blueprint(
@@ -78,7 +78,7 @@ class SAMSHub:
def menu(self, langCode):
menu = []
for app in self._appList:
if self._config.get('main_app') is app.name:
if self._config.get('main_app') == app.name:
menu.extend(app.menu(langCode = langCode))
else:
menu.extend(app.menu(langCode = langCode, urlPrefix = app.name))
Loading