Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Nov 6, 2023
1 parent 02dd70a commit 493a917
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pygeoapi/provider/tinydb_.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,6 @@ def query(self, offset=0, limit=10, resulttype='results',
QUERY.append(f"(Q.properties['{prop[0]}']=='{prop[1]}')")

if q is not None:
tokens = q.split(',')
if len(tokens) == 1 and ' ' not in q:
QUERY.append(f"(Q.properties['_metadata-anytext'].search('{q}', flags=re.IGNORECASE))") # noqa
else:
Q_QUERY = []
for t in tokens:
Q_QUERY.append(f"(Q.properties['_metadata-anytext'].search('{q}', flags=re.IGNORECASE))") # noqa
QUERY.append('(' + '|'.join(Q_QUERY) + ')')


for t in q.split():
QUERY.append(f"(Q.properties['_metadata-anytext'].search('{t}', flags=re.IGNORECASE))") # noqa

Expand Down

0 comments on commit 493a917

Please sign in to comment.