File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
diracx-db/src/diracx/db/sql/pilots
diracx-logic/src/diracx/logic/pilots Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ async def delete_pilots(self, pilot_ids: list[int]):
127127
128128 await self .conn .execute (stmt )
129129
130- async def remove_jobs_to_pilots (self , pilot_ids : list [int ]):
130+ async def remove_jobs_from_pilots (self , pilot_ids : list [int ]):
131131 """Destructive function. De-associate jobs and pilots."""
132132 stmt = delete (JobToPilotMapping ).where (
133133 JobToPilotMapping .pilot_id .in_ (pilot_ids )
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ async def delete_pilots(
7171
7272 pilot_ids = [pilot ["PilotID" ] for pilot in pilots ]
7373
74- await pilot_db .remove_jobs_to_pilots (pilot_ids )
74+ await pilot_db .remove_jobs_from_pilots (pilot_ids )
7575 await pilot_db .delete_pilot_logs (pilot_ids )
7676 await pilot_db .delete_pilots (pilot_ids )
7777
You can’t perform that action at this time.
0 commit comments