From 5971a4c183d8c13d0becd7bdc864878446cbf27e Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Thu, 8 Aug 2024 10:54:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BAweb?= =?UTF-8?q?=E7=9F=A5=E8=AF=86=E5=BA=93=E6=97=B6,=E5=90=91=E9=87=8F?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E9=94=99=E8=AF=AF=20(#948)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 3edb1f29b16ae427264996b1000e4d3faee249a0) --- apps/dataset/serializers/dataset_serializers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dataset/serializers/dataset_serializers.py b/apps/dataset/serializers/dataset_serializers.py index 7fdd1b4c845..bc00de6f72f 100644 --- a/apps/dataset/serializers/dataset_serializers.py +++ b/apps/dataset/serializers/dataset_serializers.py @@ -463,6 +463,7 @@ def save_web(self, instance: Dict, with_valid=True): dataset = DataSet( **{'id': dataset_id, 'name': instance.get("name"), 'desc': instance.get('desc'), 'user_id': user_id, 'type': Type.web, + 'embedding_mode_id': instance.get('embedding_mode_id'), 'meta': {'source_url': instance.get('source_url'), 'selector': instance.get('selector'), 'embedding_mode_id': instance.get('embedding_mode_id')}}) dataset.save()