示例#1
0
 def add_star(filesystem_id: str) -> werkzeug.Response:
     make_star_true(filesystem_id)
     db.session.commit()
     return redirect(url_for("main.index"))
示例#2
0
文件: col.py 项目: zyphlar/securedrop
 def add_star(filesystem_id):
     make_star_true(filesystem_id)
     db_session.commit()
     return redirect(url_for('main.index'))
示例#3
0
 def add_star(source_uuid: str) -> Tuple[flask.Response, int]:
     source = get_or_404(Source, source_uuid, column=Source.uuid)
     utils.make_star_true(source.filesystem_id)
     db.session.commit()
     return jsonify({'message': 'Star added'}), 201
示例#4
0
 def add_star(filesystem_id):
     make_star_true(filesystem_id)
     db_session.commit()
     return redirect(url_for('main.index'))