From 46bc6c4dbe93a75548037b53bd715bf1b30d4d5a Mon Sep 17 00:00:00 2001 From: JuniorJPDJ Date: Wed, 23 Dec 2020 16:59:12 +0100 Subject: [PATCH] Changable db path --- shared_vars.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared_vars.py b/shared_vars.py index ad47c50..a2e1993 100644 --- a/shared_vars.py +++ b/shared_vars.py @@ -20,12 +20,13 @@ from config import TOKEN, WORKERS import logging +import os from telegram.ext import Updater from game_manager import GameManager from database import db -db.bind('sqlite', 'uno.sqlite3', create_db=True) +db.bind('sqlite', os.getenv('UNO_DB', 'uno.sqlite3'), create_db=True) db.generate_mapping(create_tables=True) gm = GameManager()