6307: Use untranslated string in filter

svn: r21214
This commit is contained in:
Nick Hall 2013-01-24 16:47:14 +00:00
parent 5557ae2643
commit 1e7b512c7c

View File

@ -94,7 +94,7 @@ class ToDoGramplet(Gramplet):
all_notes = self.dbstate.db.get_note_handles()
FilterClass = GenericFilterFactory('Note')
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)
return note_list