Skip to content

Commit

Permalink
fix the sub tasks of container be duplicated (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
buweixin authored Feb 13, 2023
1 parent 5c4aa4f commit fb9fa94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openlcs/packages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,11 @@ def post(self, request, *args, **kwargs):

if serializer_data and len(serializer_data) == 1:
obj = serializer_data[0]
source_ready = 'source' in obj and \
obj['source'] is None and parent != ''
if source_ready:
return Response(data={
'results': results})
obj_url = 'http://{}/rest/v1/components/{}/'.format(
settings.HOSTNAME, obj.get('id', -1))
results['obj_url'] = obj_url
Expand Down

0 comments on commit fb9fa94

Please sign in to comment.