Skip to content

Commit

Permalink
grouping: InlineKeyboard changed , timeout updated II
Browse files Browse the repository at this point in the history
  • Loading branch information
kaulketh committed Mar 15, 2019
1 parent 4fb47b9 commit e64355f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bot/conf/lib_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""
timeout if no user activity
"""
timeout = 60
timeout = 120


""" language settings
Expand Down
5 changes: 3 additions & 2 deletions bot/greenhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ def __group_menu(bot, update):
__get_btn(lib.group1[3], conf.RELAIS_03), __get_btn(lib.group3[1], conf.RELAIS_04)],
[__get_btn(lib.group3[2], conf.RELAIS_05), __get_btn(lib.group2[1], conf.RELAIS_06),
__get_btn(lib.group2[2], conf.RELAIS_07), __get_btn(lib.group2[3], conf.RELAIS_08)],
[__get_btn(lib.btn_finished, lib.btn_finished), __get_btn(lib.btn_cancel, lib.btn_cancel)]
[InlineKeyboardButton(lib.btn_finished, callback_data=lib.btn_finished),
InlineKeyboardButton(lib.btn_cancel, callback_data=lib.btn_cancel)]
]

global reply_markup
Expand All @@ -447,7 +448,7 @@ def __group_menu(bot, update):


def __get_btn(text, callback):
return InlineKeyboardButton('{0}({1})'.format(text, callback), callback_data=callback)
return InlineKeyboardButton('{0} ({1})'.format(text, callback), callback_data=callback)
# end: grouping


Expand Down

0 comments on commit e64355f

Please sign in to comment.