Skip to content

Commit

Permalink
fix: 修复下获取资源的报错
Browse files Browse the repository at this point in the history
  • Loading branch information
zgqgit committed Jul 2, 2024
1 parent e12f621 commit 4c088fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/bisheng/database/models/group_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def get_group_all_resource(cls, group_id: int) -> List[GroupResource]:
"""
with session_getter() as session:
return session.exec(
select(GroupResource).where(GroupResource.group_id == group_id))
select(GroupResource).where(GroupResource.group_id == group_id)).all()

@classmethod
def update_group_resource(cls, group_resources: List[GroupResource]) -> List[GroupResource]:
Expand Down

0 comments on commit 4c088fb

Please sign in to comment.