core/services/main.py
2022-11-28 23:58:23 +01:00

14 lines
455 B
Python

from services.search import SearchService
from services.stat.viewed import ViewedStorage
from base.orm import local_session
async def storages_init():
with local_session() as session:
print('[main] initialize SearchService')
await SearchService.init(session)
print('[main] SearchService initialized')
print('[main] initialize storages')
await ViewedStorage.init()
print('[main] storages initialized')