mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix tags_older_than
This commit is contained in:
parent
99a99bd71f
commit
ba22e309d0
@ -1373,7 +1373,9 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
||||
if r is not None:
|
||||
if (now - r[self.FIELD_MAP['timestamp']]) > delta:
|
||||
tags = r[self.FIELD_MAP['tags']]
|
||||
if tags and tag in tags.lower():
|
||||
tags = tags.lower().split() if tags else []
|
||||
tags = [tag.strip() for tag in tags if tag.strip()]
|
||||
if tag in tags:
|
||||
yield r[self.FIELD_MAP['id']]
|
||||
|
||||
def get_next_series_num_for(self, series):
|
||||
|
Loading…
x
Reference in New Issue
Block a user