move db init to web.py

This commit is contained in:
liamcottle 2024-05-04 20:22:10 +12:00
commit 6960f076d3
2 changed files with 4 additions and 1 deletions

View file

@ -2,7 +2,7 @@ from datetime import datetime
from peewee import *
database = SqliteDatabase('storage/reticulum-webchat.db')
database = DatabaseProxy() # use a proxy object, as we will init real db client inside web.py
class BaseModel(Model):