diff --git a/aleksis/apps/chronos/schema/__init__.py b/aleksis/apps/chronos/schema/__init__.py index 2b9028679d97212af5a3c0b0f174935766e8bbec..61636d86f62ea185f8ba402dc8a9e3629163c0a9 100644 --- a/aleksis/apps/chronos/schema/__init__.py +++ b/aleksis/apps/chronos/schema/__init__.py @@ -130,16 +130,13 @@ class SubstitutionGroupsType(graphene.ObjectType): new = graphene.List(GroupType) def resolve_old(root, info): - if not root.cancelled and root.groups.all() and root.amends.groups.all(): + if root.groups.all() and root.amends.groups.all(): return root.amends.groups.all() else: return [] def resolve_new(root, info): - if root cancelled: - return root.amends.groups.all() - else: - return root.groups.all() or root.amends.groups.all() + return root.groups.all() or root.amends.groups.all() class SubstitutionType(graphene.ObjectType):