Hi,
So I have migrated half of my app to ndb and flask on python3 runtime.

To finish the migration, I have exported my db and then imported in the 
datastore emulator to dev on my PC.

The data are there and some queries are ok. But something like that returns 
an empty array, and I don't understand why.

    q = Topic.query(Topic.forum == forum.key)

The Topic model includes a forum attribute as a KeyProperty

This request to the DB works fine on app engine cloud (not the emulator).

I can do  this on the emulator, and this finally works, but that is bad:

 q = Topic.query()
 topics = []
 for t in q.iter():
       if t.forum == forum.key:
           topics.append(t)

So why is this failing on the DB emulator ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/07b00efe-d717-44be-baaf-9f805b201702n%40googlegroups.com.

Reply via email to