Skip to content

Commit 67f6513

Browse files
committed
fix: Временное исправление моделей
Signed-off-by: Roman Chursanov <[email protected]>
1 parent c8050b6 commit 67f6513

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

tgbot/handlers/head/group/game/history.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ async def head_transaction_detail_view(
150150
{transaction.created_at.strftime("%d.%m.%Y в %H:%M")}"""
151151

152152
if transaction.use:
153-
message_text += f"\n\n<b>💬 Комментарий</b>\n<blockquote expandable>{transaction.user_comment}</blockquote>"
153+
message_text += f"\n\n<b>💬 Комментарий</b>\n<blockquote expandable>{transaction.comment}</blockquote>"
154154

155155
await callback.message.edit_text(
156156
message_text, reply_markup=head_transaction_detail_kb(page)

tgbot/handlers/head/group/members.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,8 @@ async def view_member_transaction_detail(
909909
<b>📅 Дата создания</b>
910910
{transaction.created_at.strftime("%d.%m.%Y в %H:%M")}"""
911911

912-
if transaction.user_comment:
913-
message_text += f"\n\n<b>💬 Комментарий</b>\n<blockquote expandable>{transaction.user_comment}</blockquote>"
912+
if transaction.comment:
913+
message_text += f"\n\n<b>💬 Комментарий</b>\n<blockquote expandable>{transaction.comment}</blockquote>"
914914

915915
await callback.message.edit_text(
916916
message_text,

tgbot/handlers/user/game/history.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ async def transaction_detail_view(
156156
<b>📅 Дата создания</b>
157157
{transaction.created_at.strftime("%d.%m.%Y в %H:%M")}"""
158158

159-
if transaction.user_comment:
160-
message_text += f"\n\n<b>💬 Комментарий</b>\n<blockquote expandable>{transaction.user_comment}</blockquote>"
159+
if transaction.comment:
160+
message_text += f"\n\n<b>💬 Комментарий</b>\n<blockquote expandable>{transaction.comment}</blockquote>"
161161

162162
await callback.message.edit_text(
163163
message_text, reply_markup=transaction_detail_kb(page)

tgbot/handlers/user/game/inventory.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ async def product_detail_view(
194194
<blockquote expandable><b>📅 Дата покупки</b>
195195
{user_product.bought_at.strftime("%d.%m.%Y в %H:%M")}</blockquote>"""
196196

197-
if user_product.user_comment:
198-
message_text += f"\n\n<b>💬 Комментарий</b>\n{user_product.user_comment}"
199-
200197
if user_product.updated_by_user_id:
201198
manager = await stp_repo.employee.get_user(
202199
user_id=user_product.updated_by_user_id
@@ -289,9 +286,6 @@ async def product_detail_view_from_shop(
289286
<blockquote expandable><b>📅 Дата покупки</b>
290287
{user_product.bought_at.strftime("%d.%m.%Y в %H:%M")}</blockquote>"""
291288

292-
if user_product.user_comment:
293-
message_text += f"\n\n<b>💬 Комментарий</b>\n{user_product.user_comment}"
294-
295289
if user_product.updated_by_user_id:
296290
manager = await stp_repo.employee.get_user(
297291
user_id=user_product.updated_by_user_id

0 commit comments

Comments
 (0)