From 52023fcd1a148b8995844a7e1475c9d7d3072c99 Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Sun, 21 Aug 2022 23:25:10 +0300 Subject: [PATCH] correct docstrings in database.py --- database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database.py b/database.py index 12b82cf..c584eb1 100644 --- a/database.py +++ b/database.py @@ -11,7 +11,7 @@ class Database: """Implement interaction with the database.""" def __init__(self, dsn: str, log: Logger) -> None: - """Create a database if not exists.""" + """Initialize the database""" self.log: Logger = log self.log.debug('Database.__init__(DSN=\'%s\')', dsn) self.conn: connection = psycopg2.connect(dsn) @@ -158,7 +158,7 @@ class Database: self.conn.commit() def __migrate(self, dsn: str) -> None: - """Migrate or initialize database shema""" + """Migrate or initialize the database schema""" self.log.debug(f'Database.__migrate(dsn={dsn})') backend = get_backend(dsn) migrations = read_migrations('./migrations')