Fixed search results menu broken after custom filenames change.

This commit is contained in:
= 2022-06-05 22:18:38 +05:30
parent 01bf86d086
commit 27c729654e
1 changed files with 2 additions and 2 deletions

View File

@ -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")