Hi,

>From the sample you have provided, I don't notice anything that shouldn't
work.  The only issue I could think of is the issue of incomplete indexes
for the entity you are trying to query, in which case re-put()ing the entity
should solve the issue.

If you could post the complete code you are using, we can also look at that
and see if something is amiss.

-Marzia

On Fri, Feb 13, 2009 at 4:23 AM, Arun Shanker Prasad <
[email protected]> wrote:

>
> Hi All,
>
>  I have a Model with the posted on date set as a particular datetime.
> The property is a DateTime Property in the datastore. The problem is
> that when I try to do a filter query on the model like,
>
> Posts.all().filter('posted_on >=', dt1).filter('posted_on <', dt2)
>
> where,
> dt1 = datetime.datetime.today()
> dt1 = dt1.replace(hour=0, minute=0, second=0, microsecond=0,
> tzinfo=None)
>
> and dt2 is incremented to one day ahead of the current date.
>
> My problem is that this query returns an empty list. I know there are
> values in the datastore....
>
> Am I doing something wrong here?
>
> Thanks,
> Arun Shanker Prasad.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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