@loans.route('/loans/search', methods=['POST'])
@login_required
def search():

    current_user_id = session.get('logged_in_user')

    our_loans = Loans(current_user_id)
    our_users = Users(current_user_id)

    # query
    query = request.form['q'] if 'q' in request.form else ""

    # fetch loans
    loans = our_loans.get_loans()

    # filter
    loans = loans.filter(LoansTable.description.like("%"+query+"%"))

    # fetch users from connections from us
    users = our_users.get_connections()

    # date ranges for the template
    date_ranges = get_date_ranges()

    return render_template('admin_search_loans.html', **locals())
Parse patch file. If successful, returns
dataset/ETHPy150Open radekstepan/FlaskBudget/presenters/loans.py/search--crossover with--dataset/ETHPy150Open ensime/ensime-sublime/patch.py/fromfile