From ea4fd7d9eab18d0875002a6325cd70bdd0ade514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Blondon?= Date: Tue, 10 Oct 2017 21:52:05 +0200 Subject: [PATCH] Messages filter can use date objects instead of stringified dates --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 29afa2f..7bb0f12 100644 --- a/README.rst +++ b/README.rst @@ -49,10 +49,10 @@ Usage messages_from = imbox.messages(sent_to='martin@amon.cx') # Messages received before specific date - messages_from = imbox.messages(date__lt='31-July-2013') + messages_from = imbox.messages(date__lt=datetime.date(2013, 7, 31)) # Messages received after specific date - messages_from = imbox.messages(date__gt='30-July-2013') + messages_from = imbox.messages(date__gt=datetime.date(2013, 7, 30)) # Messages from a specific folder messages_folder = imbox.messages(folder='Social')