Refactor project structure and enhance Docker support
- Removed unnecessary `__init__.py` and `Dockerfile` to streamline project organization. - Updated `.dockerignore` and `.gitignore` to improve exclusion patterns for build artifacts and environment files. - Enhanced `Makefile` with new commands for managing Docker containers and added help documentation. - Introduced `pyproject.toml` for better project metadata management and dependency tracking. - Updated `requirements.txt` to reflect changes in dependencies for metrics and monitoring. - Refactored various handler files to improve code organization and maintainability.
This commit is contained in:
@@ -446,7 +446,7 @@ class AsyncBotDB:
|
||||
if conn:
|
||||
await conn.close()
|
||||
|
||||
async def get_post_content(self, last_post_id: int) -> List[Tuple[str, str]]:
|
||||
async def get_post_content(self, last_post_id: int) -> List:
|
||||
"""Получение контента поста."""
|
||||
conn = None
|
||||
try:
|
||||
@@ -484,7 +484,7 @@ class AsyncBotDB:
|
||||
if conn:
|
||||
await conn.close()
|
||||
|
||||
async def get_post_ids(self, last_post_id: int) -> List[int]:
|
||||
async def get_post_ids(self, last_post_id: int) -> List:
|
||||
"""Получение ID постов."""
|
||||
conn = None
|
||||
try:
|
||||
@@ -540,7 +540,7 @@ class AsyncBotDB:
|
||||
if conn:
|
||||
await conn.close()
|
||||
|
||||
async def get_last_users(self, limit: int = 30) -> List[Tuple[str, int]]:
|
||||
async def get_last_users(self, limit: int = 30) -> List:
|
||||
"""Получение последних пользователей."""
|
||||
conn = None
|
||||
try:
|
||||
@@ -626,7 +626,7 @@ class AsyncBotDB:
|
||||
if conn:
|
||||
await conn.close()
|
||||
|
||||
async def get_blacklist_users(self, offset: int = 0, limit: int = 10) -> List[Tuple[str, int, str, str]]:
|
||||
async def get_blacklist_users(self, offset: int = 0, limit: int = 10) -> List:
|
||||
"""Получение пользователей из черного списка."""
|
||||
conn = None
|
||||
try:
|
||||
@@ -658,7 +658,7 @@ class AsyncBotDB:
|
||||
if conn:
|
||||
await conn.close()
|
||||
|
||||
async def get_users_for_unban_today(self, date_to_unban: str) -> List[Tuple[int, str]]:
|
||||
async def get_users_for_unban_today(self, date_to_unban: str) -> List:
|
||||
"""Получение пользователей для разблокировки сегодня."""
|
||||
conn = None
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user