Skip to content

Commit

Permalink
Update dojo/api_v2/views.py
Browse files Browse the repository at this point in the history
Same

Co-authored-by: Charles Neill <[email protected]>
  • Loading branch information
hblankenship and cneill authored Nov 15, 2024
1 parent db4db4b commit f2e86b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo/api_v2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,7 @@ def process_post(self: object, data: dict):
def process_patch(self: object, data: dict):
product = Product.objects.filter(id=data.get("product")).first()
finding = Finding.objects.filter(id=data.get("finding")).first()
endpoint = Finding.objects.filter(id=data.get("endpoint")).first()
endpoint = Endpoint.objects.filter(id=data.get("endpoint")).first()
metalist = data.get("metadata")
for metadata in metalist:
dojometa = DojoMeta.objects.filter(product=product, finding=finding, endpoint=endpoint, name=metadata.get("name"))
Expand Down

0 comments on commit f2e86b0

Please sign in to comment.