Skip to content

Commit

Permalink
Councilor class에 jdName 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pingpingy1 authored Nov 20, 2023
1 parent e74c8d6 commit d0bbe9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions API/MongoDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Councilor:
sggName: str
wiwName: str
name: str
jdName: str
gender: str
birthday: str
age: int
Expand All @@ -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")),
Expand All @@ -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,
Expand Down

0 comments on commit d0bbe9e

Please sign in to comment.