mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: Document upload prompt: missing status list field (#1991)
This commit is contained in:
parent
923c75512b
commit
8db35c45c1
|
|
@ -700,7 +700,11 @@ class DocumentSerializers(ApiMixin, serializers.Serializer):
|
|||
_document.save()
|
||||
return self.one()
|
||||
|
||||
def refresh(self, state_list, with_valid=True):
|
||||
def refresh(self, state_list=None, with_valid=True):
|
||||
if state_list is None:
|
||||
state_list = [State.PENDING.value, State.STARTED.value, State.SUCCESS.value, State.FAILURE.value,
|
||||
State.REVOKE.value,
|
||||
State.REVOKED.value, State.IGNORED.value]
|
||||
if with_valid:
|
||||
self.is_valid(raise_exception=True)
|
||||
document_id = self.data.get("document_id")
|
||||
|
|
|
|||
Loading…
Reference in New Issue