Fixed search results menu broken after custom filenames change.
This commit is contained in:
parent
01bf86d086
commit
27c729654e
4
gempost
4
gempost
|
@ -513,11 +513,11 @@ elif (arg == "search"):
|
|||
postsList = []
|
||||
for i in allposts: # creating a list containing titles corresponding to filenames for posts that have the search term in their titles
|
||||
if t in i[56:-1]:
|
||||
postsList.append([i[56:-1],i[11:51]])
|
||||
postsList.append(i[11:].split(".gmi ", 1))
|
||||
|
||||
menuItems = []
|
||||
for i in postsList: # formatting it into a string list for the ncurses menu function
|
||||
menuItems.append(f"{i[0]} | {i[1]}")
|
||||
menuItems.append(f"{i[0]} | {i[1][:-1]}")
|
||||
|
||||
which = menuFunction(menuItems, f"Search listing for '{t}':\n")
|
||||
|
||||
|
|
Loading…
Reference in New Issue