Replace database methods with peewee ORM #39
2 changed files with 2 additions and 2 deletions
|
@ -2,6 +2,6 @@ import os
|
||||||
|
|
||||||
SRC_DIR = os.path.dirname(os.path.abspath(__file__))
|
SRC_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
ROOT_DIR = os.path.dirname(SRC_DIR)
|
ROOT_DIR = os.path.dirname(SRC_DIR)
|
||||||
CONFIG_FILE = os.path.join(ROOT_DIR, 'config', 'conf.json')
|
CONFIG_FILE = os.path.join(ROOT_DIR, 'config', 'conf.yml')
|
||||||
LOGGING_DIR = os.path.join(ROOT_DIR, 'logs')
|
LOGGING_DIR = os.path.join(ROOT_DIR, 'logs')
|
||||||
DATABASE_DIR = os.path.join(ROOT_DIR, 'database')
|
DATABASE_DIR = os.path.join(ROOT_DIR, 'database')
|
||||||
|
|
|
@ -79,7 +79,7 @@ def setup_logging_from_config(conf: dict):
|
||||||
|
|
||||||
def get_config(filepath):
|
def get_config(filepath):
|
||||||
with open(filepath, 'r') as cfile:
|
with open(filepath, 'r') as cfile:
|
||||||
config = yaml.load(cfile, Loader=yaml.FullLoader)
|
config = yaml.load(cfile, Loader=yaml.Loader)
|
||||||
return config
|
return config
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue