Skip to content

Commit

Permalink
Pylint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ps-mzamette committed Dec 1, 2023
1 parent ae8f1d9 commit ad0e4b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ def account():
@app.route('/search')
@login_required
def search():
search = request.args.get('search', '')
search_param = request.args.get('search', '')
with Session() as session:
session.query(Note)

personal_notes = session.query(Note).filter(
Note.user_id == current_user.id,
text(f"text like '%{search}%'")).all()
text(f"text like '%{search_param}%'")).all()
return render_template(
'search.html',
search=search,
Expand Down

0 comments on commit ad0e4b2

Please sign in to comment.