diff libervia/backend/memory/sqla.py @ 4092:74c66c0d93f3

core (memory/sqla): fix row to dict conversion in `get_files`
author Goffi <goffi@goffi.org>
date Fri, 09 Jun 2023 12:25:51 +0200
parents 4b842c1fb686
children 02f0adc745c6
line wrap: on
line diff
--- a/libervia/backend/memory/sqla.py	Thu Jun 08 21:30:57 2023 +0200
+++ b/libervia/backend/memory/sqla.py	Fri Jun 09 12:25:51 2023 +0200
@@ -907,7 +907,7 @@
         async with self.session() as session:
             result = await session.execute(stmt)
 
-        return [dict(r) for r in result]
+        return [r._asdict() for r in result]
 
     @aio
     async def set_file(