Skip to content

Commit

Permalink
Fix: checking SearchParam.query instead of text.query (which could be…
Browse files Browse the repository at this point in the history
… a string)
  • Loading branch information
LukasGold committed Oct 10, 2023
1 parent 23fbd68 commit 7bd4a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osw/wiki_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def prefix_search(
query = SearchParam(query=text)
else:
query = text
if len(text.query) > 5:
if len(query.query) > 5:
query.parallel = True

def prefix_search_(single_text):
Expand Down

0 comments on commit 7bd4a2a

Please sign in to comment.