Add missing type return to list request

This commit is contained in:
DominikDoom
2023-09-26 12:02:36 +02:00
parent 030a83aa4d
commit 22365ec8d6

View File

@@ -124,7 +124,7 @@ class TagFrequencyDb:
(tag,ttype),
)
tag_count = cursor.fetchone()
yield (tag, tag_count[0]) if tag_count else (tag, 0)
yield (tag, ttype, tag_count[0]) if tag_count else (tag, ttype, 0)
def increase_tag_count(self, tag, ttype):
current_count = self.get_tag_count(tag, ttype)