Skip to content

Commit c3b215d

Browse files
fix: Syntax error
1 parent e774a40 commit c3b215d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

diracx-db/src/diracx/db/sql/pilots/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

diracx-logic/src/diracx/logic/pilots/management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)