Python SDK: add meta_fields to Document class (#9387)
### What problem does this PR solve? Python class Document was missing "meta_fields", e.g. when querying, the document instances came without meta_fields ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
76118000c1
commit
5c3577c4c9
1 changed files with 1 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ class Document(Base):
|
|||
self.process_duration = 0.0
|
||||
self.run = "0"
|
||||
self.status = "1"
|
||||
self.meta_fields = {}
|
||||
for k in list(res_dict.keys()):
|
||||
if k not in self.__dict__:
|
||||
res_dict.pop(k)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue