bump

On Jan 10, 9:38 am, billguy <[email protected]> wrote:
> More often than not, my queries return empty despite there being data
> in the datastore.  No errors are logged either (that I can see).  Am I
> doing something wrong?
>
> ---
>
> class Notes(db.Model):
>
>         description=db.StringProperty(required=False)
>         start_date=db.DateProperty(default=datetime.datetime.now())
>         point_person=db.StringProperty(required=False)
>         default_end=datetime.datetime.now() + relativedelta( months = 1 )
>
> end_date=db.DateProperty(default=datetime.date(default_end.year,default_end 
> .month,default_end.day))
>         end_dates=db.StringProperty(required=False)
>         user=db.UserProperty()
>
> ---
>
> c=Notes.all()
> c.filter("user =",self.user)
> c.filter("start_date >=",datetime.date(self.year,self.month,1))
> c.filter("start_date
> <",datetime.date(int(next_month.strftime('%Y')),int(next_month.strftime('%m 
> ')),
> 1))
> current = c.fetch(20)
>
> ---

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to