Skip to content

Commit

Permalink
flatten the properties into describedb
Browse files Browse the repository at this point in the history
Signed-off-by: Xianhui.Lin <xianhui.lin@zilliz.com>
  • Loading branch information
JsDove committed Dec 16, 2024
1 parent 2da0b19 commit 0084bcc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymilvus/client/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,8 +981,9 @@ def __str__(self) -> str:

def to_dict(self) -> Dict[str, Any]:
"""Converts the DatabaseInfo instance to a dictionary."""
return {"name": self.name, "properties": self.properties}

result = {"name": self.name}
result.update(self.properties)
return result

class ExtraList(list):
"""
Expand Down

0 comments on commit 0084bcc

Please sign in to comment.