Browse Source

Send 404 if quest/side_quest not found

v2
Ceda EI 3 years ago
parent
commit
4609711624
  1. 6
      server.py

6
server.py

@ -207,6 +207,9 @@ def update_quest(db):
return jsonify(errors._400), 400
quest = questable.get_quest(db, player.CHAT_ID, qid)
if quest is False:
return jsonify(errors._404), 404
if quest.state == 1:
return jsonify(dictify_quest(quest))
@ -261,6 +264,9 @@ def update_side_quest(db):
return jsonify(errors._400), 400
quest = questable.get_side_quest(db, player.CHAT_ID, qid)
if quest is False:
return jsonify(errors._404), 404
if quest.state == 1:
return jsonify(dictify_quest(quest))

Loading…
Cancel
Save