Some fixes

This commit is contained in:
Yusur 2019-10-28 08:29:07 +01:00
parent dc33b5567a
commit 09a809192a
2 changed files with 9 additions and 4 deletions

View file

@ -16,7 +16,7 @@ import os
# here should go `from .utils import get_current_user`, but it will cause
# import errors. It's instead imported at function level.
database = SqliteDatabase(os.path.join(os.getcwd(), 'coriplus.sqlite'))
database = SqliteDatabase(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'coriplus.sqlite'))
class BaseModel(Model):
class Meta: