Fix unable to delete side quests.

This commit is contained in:
Ceda EI 2018-11-17 12:54:52 +05:30
parent a80a7fbcc5
commit e78fa9caa1
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -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)