Skip to content

Commit

Permalink
hotfix: typo (not_in_() -> not_in())
Browse files Browse the repository at this point in the history
  • Loading branch information
kyujin-cho committed Apr 30, 2024
1 parent 2244c53 commit e77c4a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ai/backend/manager/api/vfolder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1913,7 +1913,7 @@ async def accept_invitation(request: web.Request, params: Any) -> web.Response:
.where(
((vfolders.c.user == user_uuid) | (vfolder_permissions.c.user == user_uuid))
& (vfolders.c.name == target_vfolder.name)
& (vfolders.c.status.not_in_(vfolder_status_map[VFolderStatusSet.INACCESSIBLE])),
& (vfolders.c.status.not_in(vfolder_status_map[VFolderStatusSet.INACCESSIBLE])),
)
)
result = await conn.execute(query)
Expand Down Expand Up @@ -2078,10 +2078,10 @@ async def share(request: web.Request, params: Any, row: VFolderRow) -> web.Respo
if len(user_info) < 1:
raise ObjectNotFound(object_name="user")
if len(user_info) < len(params["emails"]):
users_not_in_vfolder_group = list(set(params["emails"]) - set(emails_to_share))
users_not_invfolder_group = list(set(params["emails"]) - set(emails_to_share))
raise ObjectNotFound(
"Some users do not belong to folder's group:"
f" {','.join(users_not_in_vfolder_group)}",
f" {','.join(users_not_invfolder_group)}",
object_name="user",
)

Expand Down

0 comments on commit e77c4a3

Please sign in to comment.