From d0bbe9e05c22fb8ed2bac2a9b8f46ac77c331c5c Mon Sep 17 00:00:00 2001 From: Heewon Lee <94441510+pingpingy1@users.noreply.github.com> Date: Mon, 20 Nov 2023 23:33:41 +0900 Subject: [PATCH] =?UTF-8?q?Councilor=20class=EC=97=90=20jdName=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- API/MongoDB.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/API/MongoDB.py b/API/MongoDB.py index c429773..261334b 100644 --- a/API/MongoDB.py +++ b/API/MongoDB.py @@ -7,6 +7,7 @@ class Councilor: sggName: str wiwName: str name: str + jdName: str gender: str birthday: str age: int @@ -22,6 +23,7 @@ def from_dict(cls, data: dict): sggName=data.get("sggName"), wiwName=data.get("wiwName"), name=data.get("name"), + jdName=data.get("jdName"), gender=data.get("gender"), birthday=data.get("birthday"), age=int(data.get("age")), @@ -37,6 +39,7 @@ def to_dict(self): "sggName": self.sggName, "wiwName": self.wiwName, "name": self.name, + "jdName": self.jdName, "gender": self.gender, "birthday": self.birthday, "age": self.age,