diff --git a/docs/conf.py b/docs/conf.py index 28a2f3df2..587ff2843 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -33,7 +33,7 @@ def __getattr__(cls, name): project = 'Tortoise' -copyright = '2018, Andrey Bondar' +copyright = '2018, Andrey Bondar' # pylint: disable=W0622 author = 'Andrey Bondar' diff --git a/tortoise/backends/asyncpg/client.py b/tortoise/backends/asyncpg/client.py index 9efc20566..44db99916 100644 --- a/tortoise/backends/asyncpg/client.py +++ b/tortoise/backends/asyncpg/client.py @@ -128,7 +128,7 @@ async def execute_insert(self, query: str, values: list) -> int: async with self.acquire_connection() as connection: # TODO: Cache prepared statement stmt = await connection.prepare(query) - return (await stmt.fetchval(*values)) + return await stmt.fetchval(*values) @translate_exceptions async def execute_query(self, query: str) -> List[dict]: