Skip to content

Commit

Permalink
don't include ,"__pydantic_initialised__" in data when creating Proje…
Browse files Browse the repository at this point in the history
…cts, nodes or links (#110)
  • Loading branch information
Domoninic authored Jun 25, 2023
1 parent 4005a10 commit 9db226f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gns3fy/gns3fy.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def create(self):
data = {
k: v
for k, v in self.__dict__.items()
if k not in ("connector", "__initialised__")
if k not in ("connector", "__initialised__","__pydantic_initialised__")
if v is not None
}

Expand Down Expand Up @@ -1012,6 +1012,7 @@ def create(self):
"links",
"connector",
"__initialised__",
"__pydantic_initialised__",
)
if v is not None
}
Expand Down Expand Up @@ -1257,7 +1258,7 @@ def create(self):
data = {
k: v
for k, v in self.__dict__.items()
if k not in ("stats", "nodes", "links", "connector", "__initialised__")
if k not in ("stats", "nodes", "links", "connector", "__initialised__","__pydantic_initialised__")
if v is not None
}

Expand Down

0 comments on commit 9db226f

Please sign in to comment.