How to use couchdb-python to call a view with a list of keys? -
I have this view define
:
" "Model ID" "Model = View Definition ('Model', 'By_Atters', '' Function '') (If (Doc. Type ==" Definition ") {for (var i = 0; i
I'm calling it this way: (script; i ++) {var author = doc. Authors [i]; Principal for principals
models = []: Model + = [D.Value model for D in the model (self ._db) [Principal] .oroz] Return list (set)
< / Pre>Instead of how can I ask for a list of keys and call it like this:
model = [d for views.models d. Value itself ._db) [* principal] .org]
Good solution is very simple Apart from this, I have to read the source code to be able to find it.
Model = [d.value (auto_db, key = principal) for d in views. Daily]
Comments
Post a Comment