fix mistake
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-12-07 13:00:26 +01:00
parent 5158144c48
commit ffe05a8531

View File

@ -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: