- Added `ca-certificates` installation to Dockerfile for improved network security. - Updated health check command in Dockerfile to include better timeout handling. - Refactored `run_helper.py` to implement proper signal handling and logging during shutdown. - Transitioned database operations to an asynchronous model in `async_db.py`, improving performance and responsiveness. - Updated database schema to support new foreign key relationships and optimized indexing for better query performance. - Enhanced various bot handlers to utilize async database methods, improving overall efficiency and user experience. - Removed obsolete database and fix scripts to streamline the project structure.
24 lines
957 B
Python
24 lines
957 B
Python
"""
|
||
Пакет репозиториев для работы с базой данных.
|
||
|
||
Содержит репозитории для разных сущностей:
|
||
- user_repository: работа с пользователями
|
||
- blacklist_repository: работа с черным списком
|
||
- message_repository: работа с сообщениями
|
||
- post_repository: работа с постами
|
||
- admin_repository: работа с администраторами
|
||
- audio_repository: работа с аудио
|
||
"""
|
||
|
||
from .user_repository import UserRepository
|
||
from .blacklist_repository import BlacklistRepository
|
||
from .message_repository import MessageRepository
|
||
from .post_repository import PostRepository
|
||
from .admin_repository import AdminRepository
|
||
from .audio_repository import AudioRepository
|
||
|
||
__all__ = [
|
||
'UserRepository', 'BlacklistRepository', 'MessageRepository', 'PostRepository',
|
||
'AdminRepository', 'AudioRepository'
|
||
]
|