Skip to content

Commit

Permalink
Fix get_tags method
Browse files Browse the repository at this point in the history
  • Loading branch information
dullage authored and Gedulis12 committed Aug 7, 2023
1 parent 39d54fc commit 99c2909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flatnotes/flatnotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def update_index(self, clean: bool = False) -> None:

def get_tags(self):
"""Return a list of all indexed tags."""
self.update_index_debounced()
self.update_index()
with self.index.reader() as reader:
tags = reader.field_terms("tags")
return [tag for tag in tags]
Expand Down

0 comments on commit 99c2909

Please sign in to comment.