Fix again tag returning

This commit is contained in:
localhost_frssoft 2022-11-30 03:49:36 +03:00
parent 4af198a733
commit 41ebffde83

View file

@ -22,9 +22,9 @@ def list_tags(pg=None, search=None):
view.append(f'{index}.{tag_name}')
select = fzf.prompt(view)[0].split('.', 1)[0]
if select == 'Next page':
list_tags(pg=tags_next)
return list_tags(pg=tags_next)
elif select == 'Prev page':
list_tags(pg=tags_prev)
return list_tags(pg=tags_prev)
elif select == 'Search':
print('Search by tag:')
return list_tags(search=input())