mirror of
https://gitlab.com/questable/questable_bot
synced 2025-10-30 03:40:05 +01:00
Fix /get_quest, /get_side_quest
This commit is contained in:
@@ -96,9 +96,8 @@ def get_quest(db):
|
||||
except(KeyError):
|
||||
return jsonify(errors._400), 400
|
||||
|
||||
try:
|
||||
quest = player.get_quest(qid)
|
||||
except Exception:
|
||||
quest = player.get_quest(qid)
|
||||
if quest is False:
|
||||
return jsonify(errors._404), 404
|
||||
|
||||
return jsonify(dictify_quest(quest))
|
||||
@@ -120,9 +119,7 @@ def get_side_quest(db):
|
||||
|
||||
side_quest = player.get_side_quest(qid)
|
||||
|
||||
try:
|
||||
side_quest = player.get_quest(qid)
|
||||
except Exception:
|
||||
if side_quest is False:
|
||||
return jsonify(errors._404), 404
|
||||
|
||||
return jsonify(dictify_quest(side_quest))
|
||||
|
||||
Reference in New Issue
Block a user