Skip to content

Commit 59c7ed3

Browse files
committed
remove current that's not needed
1 parent 15e97a9 commit 59c7ed3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

openlibrary/fastapi/yearly_reading_goals.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class ReadingGoalItem(BaseModel):
2626

2727
year: int = Field(..., description="The year for this reading goal")
2828
goal: int = Field(..., description="The target number of books to read")
29-
progress: int = Field(..., description="Current progress towards the goal")
3029

3130

3231
class ReadingGoalsResponse(BaseModel):
@@ -98,7 +97,6 @@ async def get_reading_goals_endpoint(
9897
ReadingGoalItem(
9998
year=getattr(record, 'year', 0),
10099
goal=getattr(record, 'target', 0),
101-
progress=getattr(record, 'current', 0),
102100
)
103101
for record in records
104102
]

0 commit comments

Comments
 (0)