Skip to content

Commit

Permalink
Merge pull request #72 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 e913aca + 2d421cc commit 7ca3388
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .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.name.isnot(None))
query = select(GreeModel).where(GreeModel.user_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 7ca3388

Please sign in to comment.