Update formatting
This commit is contained in:
parent
967bbe99bb
commit
392967a26f
@ -115,9 +115,8 @@ class Telegram(RPCHandler):
|
|||||||
r'/stopbuy$', r'/reload_config$', r'/show_config$',
|
r'/stopbuy$', r'/reload_config$', r'/show_config$',
|
||||||
r'/logs$', r'/whitelist$', r'/blacklist$', r'/bl_delete$',
|
r'/logs$', r'/whitelist$', r'/blacklist$', r'/bl_delete$',
|
||||||
r'/weekly$', r'/weekly \d+$', r'/monthly$', r'/monthly \d+$',
|
r'/weekly$', r'/weekly \d+$', r'/monthly$', r'/monthly \d+$',
|
||||||
r'/forcelong$', r'/forceshort$', r'/forcebuy$', r'/forcesell$',
|
r'/forcebuy$', r'/forcelong$', r'/forceshort$', r'/forcesell$',
|
||||||
r'/edge$', r'/health$', r'/help$', r'/version$']
|
r'/edge$', r'/health$', r'/help$', r'/version$']
|
||||||
|
|
||||||
# Create keys for generation
|
# Create keys for generation
|
||||||
valid_keys_print = [k.replace('$', '') for k in valid_keys]
|
valid_keys_print = [k.replace('$', '') for k in valid_keys]
|
||||||
|
|
||||||
@ -989,13 +988,13 @@ class Telegram(RPCHandler):
|
|||||||
self._force_enter_action(pair, None, order_side)
|
self._force_enter_action(pair, None, order_side)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _layout_inline_keyboard(buttons: List[InlineKeyboardButton],
|
def _layout_inline_keyboard(
|
||||||
cols=3) -> List[List[InlineKeyboardButton]]:
|
buttons: List[InlineKeyboardButton], cols=3) -> 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
|
@staticmethod
|
||||||
def _layout_inline_keyboard_onecol(buttons: List[InlineKeyboardButton],
|
def _layout_inline_keyboard_onecol(
|
||||||
cols=1) -> List[List[InlineKeyboardButton]]:
|
buttons: List[InlineKeyboardButton], cols=1) -> 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)]
|
||||||
|
|
||||||
@authorized_only
|
@authorized_only
|
||||||
|
Loading…
Reference in New Issue
Block a user