Fix unable to delete side quests.
This commit is contained in:
parent
a80a7fbcc5
commit
e78fa9caa1
2
bot.py
2
bot.py
|
@ -487,7 +487,7 @@ def message_handling(bot, update, db):
|
||||||
reply_markup = telegram.ReplyKeyboardMarkup(custom_keyboard)
|
reply_markup = telegram.ReplyKeyboardMarkup(custom_keyboard)
|
||||||
bot.send_message(chat_id=player.CHAT_ID, text=text,
|
bot.send_message(chat_id=player.CHAT_ID, text=text,
|
||||||
reply_markup=reply_markup)
|
reply_markup=reply_markup)
|
||||||
elif text == "delete quest" or text == "🗑 delete quest":
|
elif text == "delete side quest" or text == "🗑 delete side quest":
|
||||||
sq = questable.get_side_quest(db, player.CHAT_ID, state["extra"])
|
sq = questable.get_side_quest(db, player.CHAT_ID, state["extra"])
|
||||||
sq.delete_from_db()
|
sq.delete_from_db()
|
||||||
drop_state(bot, update, player)
|
drop_state(bot, update, player)
|
||||||
|
|
Loading…
Reference in New Issue