comparison 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
comparison
equal deleted inserted replaced
4091:4eb7a5ecbd9d 4092:74c66c0d93f3
905 # a JSON comparison is needed here 905 # a JSON comparison is needed here
906 906
907 async with self.session() as session: 907 async with self.session() as session:
908 result = await session.execute(stmt) 908 result = await session.execute(stmt)
909 909
910 return [dict(r) for r in result] 910 return [r._asdict() for r in result]
911 911
912 @aio 912 @aio
913 async def set_file( 913 async def set_file(
914 self, 914 self,
915 client: SatXMPPEntity, 915 client: SatXMPPEntity,