Skip to content

Commit

Permalink
Use more powerful search method in diary example.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Jan 11, 2015
1 parent 4c44730 commit f64ddbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/diary.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def add_entry():
def view_entries(search_query=None):
"""View previous entries"""
if search_query:
expr = Entry.content.match(search_query)
expr = Entry.content.search(search_query)
else:
expr = None

Expand Down

0 comments on commit f64ddbc

Please sign in to comment.