forked from c0de/BaseballBot
Use the with
statement on the game class
This is because the class is a context manager / state machine
This commit is contained in:
@@ -7,7 +7,7 @@ import datetime
|
||||
|
||||
from peewee import *
|
||||
|
||||
# User can provide path to database, or it will be put next to models.py
|
||||
# User can provide path to database, or it will be put next to main.py
|
||||
DATABASE = os.environ.get('database_path', os.getcwd() + '/ghostball.db')
|
||||
database = SqliteDatabase(DATABASE)
|
||||
|
||||
|
Reference in New Issue
Block a user