diff --git a/bot/handlers/admin/promo_codes.py b/bot/handlers/admin/promo_codes.py
index 623624c..525d495 100644
--- a/bot/handlers/admin/promo_codes.py
+++ b/bot/handlers/admin/promo_codes.py
@@ -1095,7 +1095,7 @@ async def promo_activations_handler(callback: types.CallbackQuery, i18n_data: di
)]
for activation in activations:
- activation_date = activation.created_at.strftime('%Y-%m-%d %H:%M') if activation.created_at else "N/A"
+ activation_date = activation.activated_at.strftime('%Y-%m-%d %H:%M') if activation.activated_at else "N/A"
text_parts.append(_(
"admin_promo_activation_item",
default="π€ User ID: {user_id}\nπ
ΠΠ°ΡΠ°: {date}\n",
diff --git a/db/dal/promo_code_dal.py b/db/dal/promo_code_dal.py
index f937b4d..5d1f017 100644
--- a/db/dal/promo_code_dal.py
+++ b/db/dal/promo_code_dal.py
@@ -77,7 +77,7 @@ async def get_promo_activations_by_code_id(session: AsyncSession, promo_code_id:
from db.models import PromoCodeActivation
stmt = (select(PromoCodeActivation)
.where(PromoCodeActivation.promo_code_id == promo_code_id)
- .order_by(PromoCodeActivation.created_at.desc())
+ .order_by(PromoCodeActivation.activated_at.desc())
.limit(50)) # Limit to last 50 activations
result = await session.execute(stmt)
return result.scalars().all()
diff --git a/locales/en.json b/locales/en.json
index ef6d71b..3226fd0 100644
--- a/locales/en.json
+++ b/locales/en.json
@@ -420,7 +420,7 @@
"admin_promo_toggle_status_button": "π On/Off",
"admin_promo_view_activations_button": "π Activations",
"admin_promo_back_to_list_button": "β¬
οΈ Back to list",
- "admin_promo_toggle_success": "β
Promo code {code} {status}",
+ "admin_promo_toggle_success": "β
Promo code {code} {status}",
"admin_promo_toggle_failed": "β Error changing promo code status",
"admin_promo_no_activations": "π Activations of promo code: {code}\n\nβ No activations found",
"admin_promo_activations_header": "π Activations of promo code: {code}\n\n",
diff --git a/locales/ru.json b/locales/ru.json
index 086d864..2f1cb06 100644
--- a/locales/ru.json
+++ b/locales/ru.json
@@ -419,7 +419,7 @@
"admin_promo_toggle_status_button": "π ΠΠΊΠ»/ΠΡΠΊΠ»",
"admin_promo_view_activations_button": "π ΠΠΊΡΠΈΠ²Π°ΡΠΈΠΈ",
"admin_promo_back_to_list_button": "β¬
οΈ Π ΡΠΏΠΈΡΠΊΡ",
- "admin_promo_toggle_success": "β
ΠΡΠΎΠΌΠΎΠΊΠΎΠ΄ {code} {status}",
+ "admin_promo_toggle_success": "β
ΠΡΠΎΠΌΠΎΠΊΠΎΠ΄ {code} {status}",
"admin_promo_toggle_failed": "β ΠΡΠΈΠ±ΠΊΠ° ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΡ ΡΡΠ°ΡΡΡΠ° ΠΏΡΠΎΠΌΠΎΠΊΠΎΠ΄Π°",
"admin_promo_no_activations": "π ΠΠΊΡΠΈΠ²Π°ΡΠΈΠΈ ΠΏΡΠΎΠΌΠΎΠΊΠΎΠ΄Π°: {code}\n\nβ ΠΠΊΡΠΈΠ²Π°ΡΠΈΠΉ Π½Π΅ Π½Π°ΠΉΠ΄Π΅Π½ΠΎ",
"admin_promo_activations_header": "π ΠΠΊΡΠΈΠ²Π°ΡΠΈΠΈ ΠΏΡΠΎΠΌΠΎΠΊΠΎΠ΄Π°: {code}\n\n",