Skip to content

Commit

Permalink
make some Location field optional (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
kulapard committed Jun 7, 2024
1 parent 0c5dbfc commit c4a2e75
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dayone_to_obsidian/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ class Weather(BaseModel):


class Location(BaseModel):
country: str
administrativeArea: str
placeName: str
longitude: float
latitude: float
country: str | None = None
administrativeArea: str | None = None
placeName: str | None = None
userLabel: str | None = None
localityName: str | None = None
timeZoneName: str | None = None


class Photo(BaseModel):
Expand Down

0 comments on commit c4a2e75

Please sign in to comment.