Changable db path
This commit is contained in:
parent
64877e4e48
commit
46bc6c4dbe
1 changed files with 2 additions and 1 deletions
|
@ -20,12 +20,13 @@
|
||||||
|
|
||||||
from config import TOKEN, WORKERS
|
from config import TOKEN, WORKERS
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
from telegram.ext import Updater
|
from telegram.ext import Updater
|
||||||
|
|
||||||
from game_manager import GameManager
|
from game_manager import GameManager
|
||||||
from database import db
|
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)
|
db.generate_mapping(create_tables=True)
|
||||||
|
|
||||||
gm = GameManager()
|
gm = GameManager()
|
||||||
|
|
Loading…
Reference in a new issue