Skip to content

Commit f7b7c5f

Browse files
committed
fix: fix sqlalchemy 2.0 compatibility
1 parent ccda88d commit f7b7c5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ckanext/xloader/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def _get_logs(job_id):
472472
results = conn.execute(
473473
LOGS_TABLE.select().where(LOGS_TABLE.c.job_id == job_id)).fetchall()
474474

475-
results = [dict(result) for result in results]
475+
results = [dict(result._mapping) for result in results]
476476

477477
for result in results:
478478
result.pop("job_id")

0 commit comments

Comments
 (0)