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