From a8f3187e84e68f554f43520de09d4b39243d4d70 Mon Sep 17 00:00:00 2001 From: Vladless Date: Tue, 21 Jan 2025 22:35:56 +0300 Subject: [PATCH] location-selection/major_update_notifications/gifts and more fixes --- database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.py b/database.py index 4bf85d9b..cbd7cec2 100644 --- a/database.py +++ b/database.py @@ -46,7 +46,7 @@ async def add_blocked_user(tg_id: int, conn: asyncpg.Connection): async def init_db(file_path: str = "assets/schema.sql"): - with open(file_path) as file: + with open(file_path, mode="r") as file: sql_content = file.read() statements = [stmt.strip() for stmt in sql_content.split(";") if stmt.strip()]