mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Search now applies to current filters
Combined search into the same form as filters. Closes #133
This commit is contained in:
parent
8a37baba14
commit
a802cbee74
5 changed files with 42 additions and 11 deletions
|
|
@ -359,8 +359,10 @@ class Filters:
|
|||
for filter in self._filters:
|
||||
yield filter.key, filter.display, filter.no_argument
|
||||
|
||||
def human_description(self):
|
||||
def human_description(self, extra=None):
|
||||
bits = []
|
||||
if extra:
|
||||
bits.append(extra)
|
||||
for column, lookup, value in self.selections():
|
||||
filter = self._filters_by_key.get(lookup, None)
|
||||
if filter:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue