From ffe05a853165471ad69c1669f78aa5ae084764cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Mon, 7 Dec 2020 13:00:26 +0100 Subject: [PATCH] fix mistake --- src/resources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources.py b/src/resources.py index dbc977a..5bf5c48 100644 --- a/src/resources.py +++ b/src/resources.py @@ -607,12 +607,12 @@ class ModifyEncodeResource(Resource): currentoutputneighboursids.append(outputneighbour.id) if 'outputNeighbours' in encodeobj: - for removeneighbours in listdiffer.elementsinfirstlistbutnotinsecond(currentoutputneighbours, + for removeneighbours in listdiffer.elementsinfirstlistbutnotinsecond(currentoutputneighboursids, encodeobj['outputNeighbours']): neighbourobj = StreamResource.query.filter_by(id=removeneighbours).first_or_404() neighbourobj.parent_id = None - for addneighbours in listdiffer.elementsinsecondlistbutnotinfirst(currentoutputneighbours, + for addneighbours in listdiffer.elementsinsecondlistbutnotinfirst(currentoutputneighboursids, encodeobj['outputNeighbours']): neighbourobj = StreamResource.query.filter_by(id=addneighbours).first_or_404() if neighbourobj.resource_type == StreamResourceTypeEnum.INGEST: