mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Fix ondevice template
This commit is contained in:
parent
ce1ed1ff09
commit
c460bcc30d
@ -98,9 +98,9 @@ class Rule(object): # {{{
|
|||||||
|
|
||||||
def ondevice_condition(self, col, action, val):
|
def ondevice_condition(self, col, action, val):
|
||||||
if action == 'is set':
|
if action == 'is set':
|
||||||
return "test('%s', '1', '')"%col
|
return "test(ondevice(), '1', '')"
|
||||||
if action == 'is not set':
|
if action == 'is not set':
|
||||||
return "test('%s', '', '1')"%col
|
return "test(ondevice(), '', '1')"
|
||||||
|
|
||||||
def bool_condition(self, col, action, val):
|
def bool_condition(self, col, action, val):
|
||||||
test = {'is true': 'True',
|
test = {'is true': 'True',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user