notmuch: fix to use new Query.SORT enum

This commit is contained in:
Sebastian Spaeth 2010-03-17 17:11:58 +01:00
parent 350509028b
commit 99880b7dbe

View file

@ -155,7 +155,7 @@ if __name__ == '__main__':
#TODO: implement "dump <filename>" #TODO: implement "dump <filename>"
db = Database() db = Database()
q = Query(db,'') q = Query(db,'')
q.set_sort(Query.SORT_MESSAGE_ID) q.set_sort(Query.SORT.MESSAGE_ID)
m = q.search_messages() m = q.search_messages()
for msg in m: for msg in m:
print("%s (%s)" % (msg.get_message_id(), msg.get_tags())) print("%s (%s)" % (msg.get_message_id(), msg.get_tags()))