示例#1
0
文件: server.py 项目: Wirek90/TEST
def delete_comment(comment_id=None):
    question_id = persistence.get_item_by_id('comment',
                                             comment_id)[0]["question_id"]
    persistence.delete_item('comment', comment_id)
    return redirect('/question/' + str(question_id))
示例#2
0
文件: server.py 项目: Wirek90/TEST
def delete_question(question_id=None):
    persistence.delete_item('question', question_id)
    return redirect('/')