Skip to content

Commit c0ea174

Browse files
committed
feat: implement pagination and deletion for shared knowledge API
1 parent 927b12a commit c0ea174

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/knowledge/serializers/knowledge.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ def edit(self, instance: Dict):
290290
knowledge.desc = instance.get("desc")
291291
if 'meta' in instance:
292292
knowledge.meta = instance.get('meta')
293+
if 'file_size_limit' in instance:
294+
knowledge.file_size_limit = instance.get('file_size_limit')
295+
if 'file_count_limit' in instance:
296+
knowledge.file_count_limit = instance.get('file_count_limit')
293297
if 'application_id_list' in instance and instance.get('application_id_list') is not None:
294298
application_id_list = instance.get('application_id_list')
295299
# 当前用户可修改关联的知识库列表

0 commit comments

Comments
 (0)