Skip to content

Commit 72a84ee

Browse files
committed
fix: fix select statement, remove unnecessary code in testing/__init__()
1 parent dfa6f84 commit 72a84ee

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

diracx-routers/src/diracx/routers/pilot_logging/remote_logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ async def send_message(
4141

4242
async with db.engine_context():
4343
async with db:
44-
stmt = select(
45-
(PilotAgents.PilotID).where(PilotAgents.PilotStamp == data.pilot_stamp)
44+
stmt = select(PilotAgents.PilotID).where(
45+
PilotAgents.PilotStamp == data.pilot_stamp
4646
)
4747
pilot_id = (await db.conn.execute(stmt)).scalar_one()
4848

diracx-testing/src/diracx/testing/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ def enrich_tokens(access_payload: dict, refresh_payload: dict):
211211
test_dev_settings,
212212
],
213213
database_urls=database_urls,
214-
os_database_conn_kwargs=os_database_conn_kwargs
215-
| {"PilotLogsDB": {"sqlalchemy_dsn": "sqlite+aiosqlite:///:memory:"}},
214+
os_database_conn_kwargs=os_database_conn_kwargs,
216215
config_source=ConfigSource.create_from_url(
217216
backend_url=f"git+file://{with_config_repo}"
218217
),

0 commit comments

Comments
 (0)