Skip to content

Commit

Permalink
fix: dataset segements api (#2766)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola authored Mar 11, 2024
1 parent f073dca commit 3c91f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/controllers/service_api/dataset/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ def post(self, tenant_id, dataset_id, document_id, segment_id):
parser.add_argument('segments', type=dict, required=False, nullable=True, location='json')
args = parser.parse_args()

SegmentService.segment_create_args_validate(args['segments'], document)
segment = SegmentService.update_segment(args['segments'], segment, document, dataset)
SegmentService.segment_create_args_validate(args, document)
segment = SegmentService.update_segment(args, segment, document, dataset)
return {
'data': marshal(segment, segment_fields),
'doc_form': document.doc_form
Expand Down

0 comments on commit 3c91f9b

Please sign in to comment.