File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 2626
2727engine = create_async_engine ("sqlite+aiosqlite:///:memory:" , future = True )
2828
29+ engine .update_execution_options (isolation_level = "AUTOCOMMIT" )
30+
2931router = APIRouter ()
3032
3133
@@ -77,7 +79,6 @@ async def queue_environment_changes(environment_key: str):
7779 """INSERT OR REPLACE INTO environment(key) VALUES(:environment_key)"""
7880 )
7981 await session .execute (statement , {"environment_key" : environment_key })
80- await session .commit ()
8182
8283
8384@router .post (
@@ -119,7 +120,6 @@ async def did_environment_change() -> bool:
119120 await session .execute (
120121 delete (Identity ).where (Identity .environment_key == environment_key )
121122 )
122- await session .commit ()
123123 return environment_updated
124124
125125 async def get_updated_identities () -> List [str ]:
@@ -134,7 +134,6 @@ async def get_updated_identities() -> List[str]:
134134 await session .execute (
135135 delete (Identity ).where (Identity .environment_key == environment_key )
136136 )
137- await session .commit ()
138137
139138 return hashed_identities
140139
Original file line number Diff line number Diff line change @@ -39,4 +39,3 @@ async def put_identities(
3939 statement ,
4040 {"identifier" : identifier , "environment_key" : environment_key },
4141 )
42- await session .commit ()
You can’t perform that action at this time.
0 commit comments