Skip to content

Commit 1833698

Browse files
committed
simplify dataclass
1 parent a4802ee commit 1833698

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

openlibrary/core/yearly_reading_goals.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ class ReadingGoal:
1212
username: str
1313
year: int
1414
target: int
15-
created: datetime | None = None
16-
updated: datetime | None = None
1715
books_read: int = 0
1816

1917
@classmethod
@@ -22,8 +20,6 @@ def from_row(cls, row: dict) -> 'ReadingGoal':
2220
username=row['username'],
2321
year=row['year'],
2422
target=row['target'],
25-
created=row.get('created'),
26-
updated=row.get('updated'),
2723
)
2824

2925
@property

0 commit comments

Comments
 (0)