2
0
forked from kodorvan/stcs

The stop trading button has been added, and the switch mode has been fixed

This commit is contained in:
algizn97
2025-10-23 11:28:44 +05:00
parent ddfa3a7360
commit 3df88d07ab
7 changed files with 35 additions and 83 deletions

View File

@@ -895,7 +895,6 @@ async def set_stop_timer(tg_id: int, timer_end: int) -> bool:
async def set_user_deal(
tg_id: int,
symbol: str,
last_side: str,
current_step: int,
trade_mode: str,
side_mode: str,
@@ -913,7 +912,6 @@ async def set_user_deal(
Set the user deal in the database.
:param tg_id: Telegram user ID
:param symbol: Symbol
:param last_side: Last side
:param current_step: Current step
:param trade_mode: Trade mode
:param side_mode: Side mode
@@ -943,7 +941,6 @@ async def set_user_deal(
if deal:
# Updating existing record
deal.last_side = last_side
deal.current_step = current_step
deal.trade_mode = trade_mode
deal.side_mode = side_mode
@@ -961,7 +958,6 @@ async def set_user_deal(
new_deal = UserDeals(
user=user,
symbol=symbol,
last_side=last_side,
current_step=current_step,
trade_mode=trade_mode,
side_mode=side_mode,