fixed pylint issues
This commit is contained in:
parent
d47c869f0b
commit
3640641ab0
@ -216,10 +216,10 @@ def set_admin_handler(message):
|
|||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if admin == "True" or admin == "true":
|
if admin in ("True", "true"):
|
||||||
user.admin = True
|
user.admin = True
|
||||||
|
|
||||||
elif admin == "False" or admin == "false":
|
elif admin in ("False", "false"):
|
||||||
user.admin = False
|
user.admin = False
|
||||||
|
|
||||||
session.commit()
|
session.commit()
|
||||||
@ -230,10 +230,6 @@ def set_admin_handler(message):
|
|||||||
bot.reply_to(message, "Something went wrong")
|
bot.reply_to(message, "Something went wrong")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@bot.message_handler(commands=['scoreboard', 'Scoreboard'])
|
@bot.message_handler(commands=['scoreboard', 'Scoreboard'])
|
||||||
def send_scoreboard(message):
|
def send_scoreboard(message):
|
||||||
"""send scoreboard to user
|
"""send scoreboard to user
|
||||||
|
Loading…
Reference in New Issue
Block a user