Skip to content

Commit

Permalink
Update comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
FledgeXu committed Sep 7, 2023
1 parent 701b35c commit bea84da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/api/routes/archives.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def validated_archive(
project: Project = Depends(validated_project),
session: Session = Depends(gen_session),
) -> Archive:
"""Depends()-able file from request, ensuring it exists"""
"""Depends()-able archive from request, ensuring it exists"""
stmt = select(Archive).filter_by(id=archive_id).filter_by(project_id=project.id)
archive = session.execute(stmt).scalar()
if not archive:
Expand Down Expand Up @@ -128,7 +128,7 @@ async def update_archive(
project: Project = Depends(validated_project),
session: Session = Depends(gen_session),
):
"""Create a pre-request archive"""
"""Update a metadata of a archive"""
stmt = (
update(Archive)
.filter_by(id=archive.id)
Expand Down

0 comments on commit bea84da

Please sign in to comment.