Skip to content

Commit

Permalink
fix: Generate a problem with continuous clicking without response (#1958
Browse files Browse the repository at this point in the history
)
  • Loading branch information
shaohuzhang1 authored Dec 31, 2024
1 parent e0882de commit 9d96ed3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/dataset/serializers/paragraph_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,6 @@ class BatchGenerateRelated(ApiMixin, serializers.Serializer):
dataset_id = serializers.UUIDField(required=True, error_messages=ErrMessage.uuid("知识库id"))
document_id = serializers.UUIDField(required=True, error_messages=ErrMessage.uuid("文档id"))

@transaction.atomic
def batch_generate_related(self, instance: Dict, with_valid=True):
if with_valid:
self.is_valid(raise_exception=True)
Expand Down

0 comments on commit 9d96ed3

Please sign in to comment.