mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-24 02:14:52 +01:00
notmuch: fix to use new Query.SORT enum
This commit is contained in:
parent
350509028b
commit
99880b7dbe
1 changed files with 1 additions and 1 deletions
2
notmuch
2
notmuch
|
@ -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()))
|
||||||
|
|
Loading…
Reference in a new issue