File tree Expand file tree Collapse file tree
fastapi_sqlalchemy_toolkit Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -746,7 +746,7 @@ async def bulk_update(
746746 stmt = update (self .model ).values (update_data )
747747 if ids :
748748 stmt = stmt .where (self .model .id .in_ (ids ))
749- elif where :
749+ elif where is not None :
750750 stmt = stmt .where (where )
751751 if returning :
752752 stmt = stmt .returning (self .model )
@@ -802,7 +802,7 @@ async def bulk_delete(
802802 stmt = delete (self .model )
803803 if ids :
804804 stmt = stmt .where (self .model .id .in_ (ids ))
805- elif where :
805+ elif where is not None :
806806 stmt = stmt .where (where )
807807 await session .execute (stmt )
808808 await self .save (session , commit = commit )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " fastapi_sqlalchemy_toolkit"
7- version = " 0.7.11 "
7+ version = " 0.7.12 "
88authors = [
99 { name =" Egor Kondrashov" , email =" e.kondr01@gmail.com" },
1010]
You can’t perform that action at this time.
0 commit comments