Skip to content

Commit

Permalink
Merge pull request #73 from 2Swon/main
Browse files Browse the repository at this point in the history
error fix
  • Loading branch information
2Swon authored Feb 19, 2024
2 parents 7ca3388 + b8d1af4 commit fbcfe7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/crud/crud_gree.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async def crud_update_gree(db: AsyncSession, gree_id: int, gree_update: GreeUpda

async def crud_get_grees(db: AsyncSession, user_id: int) -> List[GreeModel]:
async with db as session:
query = select(GreeModel).where(GreeModel.user_id == user_id, GreeModel.gree_name.isnot(None))
query = select(GreeModel).where(GreeModel.member_id == user_id, GreeModel.gree_name.isnot(None))
result = await db.execute(query)
grees = result.scalars().all()
return grees
Expand Down

0 comments on commit fbcfe7b

Please sign in to comment.