Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ def __call__(self): | |
search = form.get('q') | ||
searchp = form.get('qp') | ||
compare = _is_in | ||
if searchp: | ||
if searchp is not None: | ||
search = searchp | ||
if search is not None and search.startswith('prefix:'): | ||
search = search[len('prefix:'):] | ||
|
@@ -52,7 +52,7 @@ def __call__(self): | |
break | ||
if recordPrefix not in self.prefixes: | ||
self.prefixes[recordPrefix] = prefixValue | ||
if compare(search, record.__name__): | ||
if compare(search, prefixValue): | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
danjacka
Author
Member
|
||
self.records.append(record) | ||
self.records = Batch(self.records, 10, | ||
int(form.get('b_start', '0')), orphan=1) | ||
|
2 comments
on commit 939a852
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a43df30 is what you're looking for?
I'm not sure what has changed but this line seems like it shouldn't be necessary. Perhaps just set a default value of prefixValue = record.name?