From 5aa5d1cec2075823ab88f7ea446c3d6b6aa61c1c Mon Sep 17 00:00:00 2001 From: Sylte Date: Tue, 16 Feb 2021 19:33:35 +0100 Subject: [PATCH] Oops... Signed-off-by: Sylte --- postDB/__init__.py | 4 ++-- postDB/model/model.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/postDB/__init__.py b/postDB/__init__.py index 781a4a4..6b2c911 100644 --- a/postDB/__init__.py +++ b/postDB/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.2.2" +__version__ = "0.2.3" __author__ = "Sylte" __licence__ = "MIT" __copyright__ = "Copyright (c) 2020 Sylte" @@ -18,7 +18,7 @@ def get_version(version: tuple): return "%s %s.%s.%s" % (version[3], version[0], version[1], version[2]) -VERSION = (0, 2, 2, "final", 0) +VERSION = (0, 2, 3, "final", 0) version_info = VersionInfo(*VERSION) logging.getLogger(__name__).addHandler(logging.NullHandler()) diff --git a/postDB/model/model.py b/postDB/model/model.py index 603abbf..3c7cdf3 100644 --- a/postDB/model/model.py +++ b/postDB/model/model.py @@ -153,7 +153,7 @@ async def create_table( if verbose: print(sql) - return cls.pool.execute(sql) + return await cls.pool.execute(sql) @classmethod async def drop_table( @@ -172,7 +172,7 @@ async def drop_table( if verbose: print(sql) - return cls.pool.execute(sql) + return await cls.pool.execute(sql) @classmethod def all_models(cls) -> List[Type["Model"]]: