Skip to content
Snippets Groups Projects
Commit 1359dc33 authored by Andreas Valder's avatar Andreas Valder
Browse files

removed duplicated spaces, see #346

parent effd6235
No related branches found
No related tags found
No related merge requests found
......@@ -132,8 +132,7 @@ def sort_now():
for lecture in matches:
for keyword in data['keywords']:
# first test for exact match, else make it asci and try substring test
if (keyword == lecture[field]) or \
(str(keyword).lower() in str(to_ascii(lecture[field]).lower())):
if (keyword == lecture[field]) or (str(keyword).lower() in str(to_ascii(lecture[field]).lower())):
found = True
matches = [lecture]
if found:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment