def route_question_view(ID): queries.modify_value_of_data("question", "view_number", "id", str(ID), 1) return redirect("/question/" + str(ID))
def route_answer_vote_down(ID): queries.modify_value_of_data("answer", "vote_number", "id", str(ID), -1) question_id = queries.get_value_of_an_attribute("answer", "question_id", "id", str(ID)) return redirect("/question/" + str(question_id))