mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
chore: remove redundant method
This commit is contained in:
parent
c3a00b93c2
commit
f1df7e9bdc
|
@ -1274,7 +1274,7 @@ class Telegram(RPCHandler):
|
||||||
InlineKeyboardButton(text=trade[1], callback_data=f"force_exit__{trade[0]}")
|
InlineKeyboardButton(text=trade[1], callback_data=f"force_exit__{trade[0]}")
|
||||||
for trade in trades
|
for trade in trades
|
||||||
]
|
]
|
||||||
buttons_aligned = self._layout_inline_keyboard_onecol(trade_buttons)
|
buttons_aligned = self._layout_inline_keyboard(trade_buttons, cols=1)
|
||||||
|
|
||||||
buttons_aligned.append(
|
buttons_aligned.append(
|
||||||
[InlineKeyboardButton(text="Cancel", callback_data="force_exit__cancel")]
|
[InlineKeyboardButton(text="Cancel", callback_data="force_exit__cancel")]
|
||||||
|
@ -1348,12 +1348,6 @@ class Telegram(RPCHandler):
|
||||||
) -> List[List[InlineKeyboardButton]]:
|
) -> List[List[InlineKeyboardButton]]:
|
||||||
return [buttons[i : i + cols] for i in range(0, len(buttons), cols)]
|
return [buttons[i : i + cols] for i in range(0, len(buttons), cols)]
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def _layout_inline_keyboard_onecol(
|
|
||||||
buttons: List[InlineKeyboardButton], cols=1
|
|
||||||
) -> List[List[InlineKeyboardButton]]:
|
|
||||||
return [buttons[i : i + cols] for i in range(0, len(buttons), cols)]
|
|
||||||
|
|
||||||
@authorized_only
|
@authorized_only
|
||||||
async def _force_enter(
|
async def _force_enter(
|
||||||
self, update: Update, context: CallbackContext, order_side: SignalDirection
|
self, update: Update, context: CallbackContext, order_side: SignalDirection
|
||||||
|
|
Loading…
Reference in New Issue
Block a user