Installed fuzzywuzzy, update requirements.txt.
This commit is contained in:
parent
0722f0bca0
commit
8ffeabed8b
2 changed files with 10 additions and 2 deletions
|
@ -146,7 +146,11 @@ def nodes_by_wikilink(wikilink):
|
|||
nodes = [node for node in all_nodes() if node.wikilink == wikilink]
|
||||
return nodes
|
||||
|
||||
def subnodes_by_wikilink(wikilink):
|
||||
def subnodes_by_wikilink(wikilink, fuzzy=True):
|
||||
if fuzzy:
|
||||
# TODO
|
||||
subnodes = [subnode for subnode in all_subnodes() if subnode.wikilink == wikilink]
|
||||
else:
|
||||
subnodes = [subnode for subnode in all_subnodes() if subnode.wikilink == wikilink]
|
||||
return subnodes
|
||||
|
||||
|
|
|
@ -2,14 +2,18 @@ bleach==3.2.1
|
|||
click==7.1.2
|
||||
Flask==1.1.2
|
||||
Flask-Markdown==0.3
|
||||
fuzzywuzzy==0.18.0
|
||||
importlib-metadata==2.0.0
|
||||
itsdangerous==1.1.0
|
||||
jedi==0.17.2
|
||||
Jinja2==2.11.2
|
||||
Markdown==3.3.3
|
||||
MarkupSafe==1.1.1
|
||||
packaging==20.4
|
||||
parso==0.7.1
|
||||
pkg-resources==0.0.0
|
||||
pyparsing==2.4.7
|
||||
python-Levenshtein==0.12.0
|
||||
six==1.15.0
|
||||
uWSGI==2.0.19.1
|
||||
webencodings==0.5.1
|
||||
|
|
Loading…
Reference in a new issue