code style changes

This commit is contained in:
mitsuha_s 2022-07-13 21:54:15 +00:00
parent 50ac344095
commit 2dde80f715

View file

@ -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)