Commit f5f6493d authored by Benjamin Winger's avatar Benjamin Winger

migrate: Fixed display of results in list when disambiguating

parent 8f042edd
......@@ -233,8 +233,8 @@ def prompt_mods(path, modq):
i = 0
for pitem in modlist:
print("i) Priority: {}".format(i, pitem.priority))
display_search_results([pitem.item])
print("{}) Priority: {}".format(i, 100 - pitem.priority))
display_search_results([pitem.item], summarize=False)
i += 1
index = prompt_num(desc, len(modlist), cancel=True)
......
......@@ -18,7 +18,7 @@ def query_installed(field, value):
return {mod for mod in installed if value in getattr(mod, field)}
def display_search_results(mods):
def display_search_results(mods, summarize=True):
groupedmods = {}
for mod in mods:
if groupedmods.get(mod.CMN) is None:
......@@ -51,4 +51,5 @@ def display_search_results(mods):
print()
print("\nMods found: {}".format(len(sortedgroups)))
if summarize:
print("\nMods found: {}".format(len(sortedgroups)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment