0

I did a couchdb view in Javascript and when I test it with a get python requests, it returns me things I want when I do :

url='http://admin:kolea21342@localhost:5984/my_database_2/_design/newdesigndoc/_view/ReviewinUsers?key="ayoub"'
res = requests.get(url)
print(res.text)

But now I want to compare the value that returns to me with res.text to another value, But I don't know how to proceed because it returns me a thing like that :

{"total_rows":8,"offset":0,"rows":[
  "value":"ayoub"
]}

So in addition I just want to compare the value that I got with a variable. I don't know how to mention it. (My goal is to do a login and compare password entered to password in the database).

Thanks for everyone who will answer !

  • As an aside, the result is a projection of the view index, the latter being constructed via the view's `map` function - it is *not* the direct result of the `emit` function. – RamblinRose Sep 08 '22 at 19:35

0 Answers0