Skip to content

Commit

Permalink
added default value
Browse files Browse the repository at this point in the history
  • Loading branch information
fullerzz committed Sep 21, 2024
1 parent 4933f6c commit 31e84f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smolvault/clients/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_all_metadata(
start_time: datetime | None = None,
end_time: datetime | None = None,
offset: int = 0,
limit: Annotated[int, PydanticField(default=10, lt=100)],
limit: Annotated[int, PydanticField(default=10, lt=100)] = 10,
) -> Sequence[FileMetadataRecord]:
with Session(self.engine) as session:
statement = select(FileMetadataRecord).where(FileMetadataRecord.user_id == user_id)
Expand Down

0 comments on commit 31e84f1

Please sign in to comment.