diff --git a/aleksis/core/util/apps.py b/aleksis/core/util/apps.py index 851d4cf3c4f2cc06e3a786b098eeee01a1ffd317..ee42aa60088a1c215df82d68d622098e96ba0f85 100644 --- a/aleksis/core/util/apps.py +++ b/aleksis/core/util/apps.py @@ -81,6 +81,8 @@ class AppConfig(django.apps.AppConfig): "isOsiApproved": True, } + licence_dicts = [] + for symbol in parsed.symbols: licence_dict = LICENSES.get(symbol.key, None) @@ -92,6 +94,8 @@ class AppConfig(django.apps.AppConfig): flags["isFsfLibre"] = flags["isFsfLibre"] and licence_dict["isFsfLibre"] flags["isOsiApproved"] = flags["isOsiApproved"] and licence_dict["isOsiApproved"] + licence_dicts.append(licence_dict) + return (readable, flags, licence_dicts) else: return ("Unknown", [default_dict])