Skip to content

Commit

Permalink
Return the response from the AI tool (#4432)
Browse files Browse the repository at this point in the history
  • Loading branch information
amteuscher committed Mar 24, 2022
1 parent 96af4f1 commit ddc6e0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Permission error occured when accessing the JobCommits (<https://github.com/openvinotoolkit/cvat/issues/4434>)
- job assignee can remove or update any issue created by the task owner (<https://github.com/openvinotoolkit/cvat/issues/4424>)
- Bug: Incorrect point deletion with keyboard shortcut (<https://github.com/openvinotoolkit/cvat/pull/4420>)
- some AI Tools were not sending responses properly (<https://github.com/openvinotoolkit/cvat/issues/4432>)

### Security
- TDB
Expand Down
6 changes: 3 additions & 3 deletions cvat/apps/lambda_manager/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2021 Intel Corporation
# Copyright (C) 2022 Intel Corporation
#
# SPDX-License-Identifier: MIT

Expand Down Expand Up @@ -281,8 +281,8 @@ def check_attr_value(value, func_attr, db_attr):
item["attributes"].append(attr)
item['label'] = mapping[item['label']]
response_filtered.append(item)

return response_filtered
response = response_filtered
return response

def _get_image(self, db_task, frame, quality):
if quality is None or quality == "original":
Expand Down

0 comments on commit ddc6e0d

Please sign in to comment.