svn: r11964
This commit is contained in:
@@ -47,9 +47,9 @@ class HasGalleryBase(Rule):
|
||||
|
||||
def prepare(self, db):
|
||||
# things we want to do just once, not for every handle
|
||||
if self.list[1] == _('lesser than'):
|
||||
if self.list[1] == 'lesser than':
|
||||
self.count_type = 0
|
||||
elif self.list[1] == _('greater than'):
|
||||
elif self.list[1] == 'greater than':
|
||||
self.count_type = 2
|
||||
else:
|
||||
self.count_type = 1 # "equal to"
|
||||
|
||||
@@ -50,9 +50,9 @@ class HasLDSBase(Rule):
|
||||
|
||||
def prepare(self, db):
|
||||
# things we want to do just once, not for every handle
|
||||
if self.list[1] == _('lesser than'):
|
||||
if self.list[1] == 'lesser than':
|
||||
self.count_type = 0
|
||||
elif self.list[1] == _('greater than'):
|
||||
elif self.list[1] == 'greater than':
|
||||
self.count_type = 2
|
||||
else:
|
||||
self.count_type = 1 # "equal to"
|
||||
|
||||
@@ -56,9 +56,9 @@ class HasNoteBase(Rule):
|
||||
|
||||
def prepare(self, db):
|
||||
# things we want to do just once, not for every handle
|
||||
if self.list[1] == _('lesser than'):
|
||||
if self.list[1] == 'lesser than':
|
||||
self.count_type = 0
|
||||
elif self.list[1] == _('greater than'):
|
||||
elif self.list[1] == 'greater than':
|
||||
self.count_type = 2
|
||||
else:
|
||||
self.count_type = 1 # "equal to"
|
||||
|
||||
@@ -48,9 +48,9 @@ class HasSourceBase(Rule):
|
||||
|
||||
def prepare(self, db):
|
||||
# things we want to do just once, not for every handle
|
||||
if self.list[1] == _('lesser than'):
|
||||
if self.list[1] == 'lesser than':
|
||||
self.count_type = 0
|
||||
elif self.list[1] == _('greater than'):
|
||||
elif self.list[1] == 'greater than':
|
||||
self.count_type = 2
|
||||
else:
|
||||
self.count_type = 1 # "equal to"
|
||||
|
||||
Reference in New Issue
Block a user