This commit is contained in:
parent
5158144c48
commit
ffe05a8531
@ -607,12 +607,12 @@ class ModifyEncodeResource(Resource):
|
|||||||
currentoutputneighboursids.append(outputneighbour.id)
|
currentoutputneighboursids.append(outputneighbour.id)
|
||||||
|
|
||||||
if 'outputNeighbours' in encodeobj:
|
if 'outputNeighbours' in encodeobj:
|
||||||
for removeneighbours in listdiffer.elementsinfirstlistbutnotinsecond(currentoutputneighbours,
|
for removeneighbours in listdiffer.elementsinfirstlistbutnotinsecond(currentoutputneighboursids,
|
||||||
encodeobj['outputNeighbours']):
|
encodeobj['outputNeighbours']):
|
||||||
neighbourobj = StreamResource.query.filter_by(id=removeneighbours).first_or_404()
|
neighbourobj = StreamResource.query.filter_by(id=removeneighbours).first_or_404()
|
||||||
neighbourobj.parent_id = None
|
neighbourobj.parent_id = None
|
||||||
|
|
||||||
for addneighbours in listdiffer.elementsinsecondlistbutnotinfirst(currentoutputneighbours,
|
for addneighbours in listdiffer.elementsinsecondlistbutnotinfirst(currentoutputneighboursids,
|
||||||
encodeobj['outputNeighbours']):
|
encodeobj['outputNeighbours']):
|
||||||
neighbourobj = StreamResource.query.filter_by(id=addneighbours).first_or_404()
|
neighbourobj = StreamResource.query.filter_by(id=addneighbours).first_or_404()
|
||||||
if neighbourobj.resource_type == StreamResourceTypeEnum.INGEST:
|
if neighbourobj.resource_type == StreamResourceTypeEnum.INGEST:
|
||||||
|
Loading…
Reference in New Issue
Block a user