Re: Fetch data from two dates query in python and mongoengine

2018-08-24 Thread mahesh d
Thanks! On Fri 24 Aug, 2018, 9:01 PM Kunal Jamdade, wrote: > Hi Mahesh, > > Import Q from queryset. > > from mongoengine.queryset.visitor import Q > > ProcessedEmails.objects(Q(first_date) & Q(second_date)) > > > > On Fri, Aug 24, 2018 at 12:41 PM mahesh d wrote: > >> [image: Boxbe]

Re: Fetch data from two dates query in python and mongoengine

2018-08-24 Thread Kunal Jamdade
Hi Mahesh, Import Q from queryset. from mongoengine.queryset.visitor import Q ProcessedEmails.objects(Q(first_date) & Q(second_date)) On Fri, Aug 24, 2018 at 12:41 PM mahesh d wrote: > [image: Boxbe] This message is eligible > for Automatic Cleanup! (mahesh.

Fetch data from two dates query in python and mongoengine

2018-08-23 Thread mahesh d
Hii My model like this class ProcessedEmails(Document): subject = StringField(max_length=200) fromaddress =StringField(max_length=200) dateofprocessing = StringField(max_length=25) How can find out the records between two dates ?? Note: date of processing is string field Mongodb database using