diff --git a/app.py b/app.py index bf63331..1ac3557 100644 --- a/app.py +++ b/app.py @@ -13,6 +13,7 @@ if (not isdir("/TelegramEDT/alembic")) and isfile("/TelegramEDT/edt.db"): c = connect("/TelegramEDT/edt.db") c.execute("delete from alembic_version;") c.commit() + c.close() app = Flask(__name__) webhook_secret = environ.get("webhook_secret") diff --git a/docker-compose.yml b/docker-compose.yml index d5785a9..e252dbf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: networks: - nginx_web volumes: - - ./TelegramEDT/TelegramEDT:/TelegramEDT + - ./TelegramEDT:/TelegramEDT env_file: - webhook_secret.env