6307: Use untranslated string in filter

svn: r21215
This commit is contained in:
Nick Hall 2013-01-24 16:47:36 +00:00
parent c221c1076a
commit 0e172acd4c

View File

@ -93,7 +93,7 @@ class ToDoGramplet(Gramplet):
all_notes = self.dbstate.db.get_note_handles() all_notes = self.dbstate.db.get_note_handles()
FilterClass = GenericFilterFactory('Note') FilterClass = GenericFilterFactory('Note')
filter = FilterClass() filter = FilterClass()
filter.add_rule(rules.note.HasType([_("To Do")])) filter.add_rule(rules.note.HasType(["To Do"]))
note_list = filter.apply(self.dbstate.db, all_notes) note_list = filter.apply(self.dbstate.db, all_notes)
return note_list return note_list