code style changes
This commit is contained in:
parent
50ac344095
commit
2dde80f715
|
@ -1,9 +1,7 @@
|
|||
from logging import Logger
|
||||
import psycopg2
|
||||
from psycopg2.extensions import connection
|
||||
from psycopg2.extras import DictCursor, DictRow
|
||||
|
||||
from logging import Logger
|
||||
|
||||
from exceptions import DisplayableException
|
||||
from rss import FeedItem
|
||||
|
||||
|
@ -184,4 +182,4 @@ class Database:
|
|||
@staticmethod
|
||||
def __dictrow_to_dict_list(rows: list[DictRow]) -> list[dict]:
|
||||
"""Convert list of DictRows to list of dicts"""
|
||||
return list(map(lambda x: dict(x), rows))
|
||||
return list(dict, rows)
|
||||
|
|
Loading…
Reference in a new issue