Skip to content

Commit

Permalink
pylint: auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xditya committed Nov 6, 2020
1 parent f2db298 commit beb4e92
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
32 changes: 14 additions & 18 deletions telebot/plugins/_inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,25 +339,21 @@ def paginate_help(page_number, loaded_plugins, prefix):
max_num_pages = ceil(len(pairs) / number_of_rows)
modulo_page = page_number % max_num_pages
if len(pairs) > number_of_rows:
pairs = pairs[
modulo_page * number_of_rows : number_of_rows * (modulo_page + 1)
] + [
(
custom.Button.inline(
"⏮️ Previous", data="{}_prev({})".format(prefix, modulo_page)
),
custom.Button.inline("Close", data="close"),
custom.Button.inline(
"Next ⏭️", data="{}_next({})".format(prefix, modulo_page)
),
)
] + [
(
custom.Button.inline(
"Stats", data="statcheck"
pairs = (
pairs[modulo_page * number_of_rows : number_of_rows * (modulo_page + 1)]
+ [
(
custom.Button.inline(
"⏮️ Previous", data="{}_prev({})".format(prefix, modulo_page)
),
custom.Button.inline("Close", data="close"),
custom.Button.inline(
"Next ⏭️", data="{}_next({})".format(prefix, modulo_page)
),
)
)
]
]
+ [(custom.Button.inline("Stats", data="statcheck"))]
)
return pairs


Expand Down
3 changes: 1 addition & 2 deletions telebot/plugins/superfban.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ async def _(event):

CMD_HELP.update(
{
"superban":
".superfban <username/userid> <reason>\
"superban": ".superfban <username/userid> <reason>\
\n**Usage**: Mass-Ban in all feds you are admin in.\
\nSet `EXCLUDE_FED fedid1|fedid2` in heroku vars to exclude those feds.\
\nSet var `FBAN_GROUP_ID` ti the group with rose, where you want FBan to take place.\
Expand Down

0 comments on commit beb4e92

Please sign in to comment.