Refactor trial management function names for clarity. Renamed set_trial to update_trial in database.py and updated all related handler calls in start.py, admin_user_editor.py, and trial_key.py to reflect this change. This improves code readability and consistency across the codebase.

This commit is contained in:
Zakhar Izmaylov
2025-01-23 12:03:01 +03:00
parent 5a0b157529
commit 0890d326a4
4 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -279,7 +279,7 @@ async def delete_coupon(coupon_code: str, session: Any):
return False
async def set_trial(tg_id: int, status: int, session: Any):
async def update_trial(tg_id: int, status: int, session: Any):
"""
Устанавливает статус триального периода для пользователя.
@@ -1568,6 +1568,8 @@ async def get_all_keys(session: Any = None):
finally:
if conn is not None and session is None:
await conn.close()
import json
from datetime import datetime
from typing import Any