core/services/main.py
Igor Lobanov 2c524279f6 lint wip
2023-10-26 19:56:42 +02: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')