Files
core/services/main.py

14 lines
453 B
Python
Raw Normal View History

2022-10-04 03:32:29 +03:00
from services.search import SearchService
2023-10-05 23:34:02 +03:00
from services.viewed import ViewedStorage
2023-10-05 21:46:18 +03:00
from services.db import local_session
async def storages_init():
with local_session() as session:
2023-10-05 21:46:18 +03:00
print("[main] initialize SearchService")
2022-10-04 15:07:41 +03:00
await SearchService.init(session)
2023-10-05 21:46:18 +03:00
print("[main] SearchService initialized")
print("[main] initialize storages")
2022-11-22 01:23:16 +03:00
await ViewedStorage.init()
2023-10-05 21:46:18 +03:00
print("[main] storages initialized")