mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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)
|
r.add_condition('tags', 'has', value)
|
||||||
rules.append(r.template)
|
rules.append(r.template)
|
||||||
return rules
|
return rules
|
||||||
return template
|
return [template]
|
||||||
|
|
||||||
|
@ -229,7 +229,8 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
|||||||
if col and templ:
|
if col and templ:
|
||||||
try:
|
try:
|
||||||
del self.prefs['column_color_name_'+str(i)]
|
del self.prefs['column_color_name_'+str(i)]
|
||||||
templ = migrate_old_rule(self.field_metadata, templ)
|
rules = migrate_old_rule(self.field_metadata, templ)
|
||||||
|
for templ in rules:
|
||||||
old_rules.append((col, templ))
|
old_rules.append((col, templ))
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user