def route_answer_vote_down(answer_id): global update_views global questions_found update_views = False answer_id_conv = int(answer_id) data_manager.vote_item_up_down(answer_id_conv, 'answer', 'down') return redirect(request.referrer)
def route_question_vote_down(question_id): question_id_conv = int(question_id) data_manager.vote_item_up_down(question_id_conv, 'question', 'down') return redirect(request.referrer)