core/services/main.py
2023-10-30 22:00:55 +01:00

14 lines
455 B
Python

from base.orm import local_session
from services.search import SearchService
from services.stat.viewed import ViewedStorage
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")