Explorar el Código

Fix order of fields in sites' rows

jherve hace 1 año
padre
commit
1e135c8fb8
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/de_quoi_parle_le_monde/storage.py

+ 1 - 0
src/de_quoi_parle_le_monde/storage.py

@@ -439,6 +439,7 @@ class Storage:
     async def list_sites(self):
         async with self.conn as conn:
             sites = await conn.execute_fetchall("SELECT * FROM sites")
+            return [self._from_row(s, self._table_by_name["sites"]) for s in sites]
             return [{"id": s[0], "original_url": s[1], "name": s[2]} for s in sites]
 
     async def list_neighbouring_main_articles(