Skip to content

Commit

Permalink
Added TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
fullerzz committed Sep 21, 2024
1 parent 68e257d commit ce8ea9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/smolvault/clients/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def get_metadata(self, filename: str, user_id: int) -> FileMetadataRecord | None
)
return session.exec(statement).first()

# TODO: Add offset and limit parameters
def select_metadata_by_tag(self, tag: str, user_id: int) -> Sequence[FileMetadataRecord]:
with Session(self.engine) as session:
statement = (
Expand Down
2 changes: 2 additions & 0 deletions src/smolvault/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ async def get_file_metadata(
return None


# TODO: Add offset and limit query parameters
@app.get("/files")
async def get_files(
current_user: Annotated[User, Depends(get_current_user)],
Expand All @@ -187,6 +188,7 @@ async def get_files(
return results


# TODO: Add offset and limit query parameters
@app.get("/files/search")
async def search_files(
current_user: Annotated[User, Depends(get_current_user)],
Expand Down

0 comments on commit ce8ea9a

Please sign in to comment.