mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
cf037a16fc
commit
2010cf2671
@ -185,5 +185,5 @@ def migrate_old_rule(fm, template):
|
||||
r.add_condition('tags', 'has', value)
|
||||
rules.append(r.template)
|
||||
return rules
|
||||
return template
|
||||
return [template]
|
||||
|
||||
|
@ -229,8 +229,9 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
||||
if col and templ:
|
||||
try:
|
||||
del self.prefs['column_color_name_'+str(i)]
|
||||
templ = migrate_old_rule(self.field_metadata, templ)
|
||||
old_rules.append((col, templ))
|
||||
rules = migrate_old_rule(self.field_metadata, templ)
|
||||
for templ in rules:
|
||||
old_rules.append((col, templ))
|
||||
except:
|
||||
pass
|
||||
if old_rules:
|
||||
|
Loading…
x
Reference in New Issue
Block a user