예제 #1
0
 def remove_star(filesystem_id: str) -> werkzeug.Response:
     make_star_false(filesystem_id)
     db.session.commit()
     return redirect(url_for("main.index"))
예제 #2
0
파일: col.py 프로젝트: zyphlar/securedrop
 def remove_star(filesystem_id):
     make_star_false(filesystem_id)
     db_session.commit()
     return redirect(url_for('main.index'))
예제 #3
0
파일: api.py 프로젝트: itsibitzi/securedrop
 def remove_star(source_uuid: str) -> Tuple[flask.Response, int]:
     source = get_or_404(Source, source_uuid, column=Source.uuid)
     utils.make_star_false(source.filesystem_id)
     db.session.commit()
     return jsonify({'message': 'Star removed'}), 200
예제 #4
0
 def remove_star(filesystem_id):
     make_star_false(filesystem_id)
     db_session.commit()
     return redirect(url_for('main.index'))