Skip to content
Snippets Groups Projects
Commit 90695cae authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

Beispiel für view-Aufruf

parent dffad603
Branches
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ class DB: ...@@ -36,6 +36,7 @@ class DB:
view_con = self.config.get('views').get('cal_docs') view_con = self.config.get('views').get('cal_docs')
try: try:
res = [] res = []
# Ex.: http://a73434.berlin.ptb.de:5984/vl_db/_design/share/_view/Cert/?key="2024_75466"&descending=true
for item in self.db.view("share/Cert", key=year_cert, descending=True): for item in self.db.view("share/Cert", key=year_cert, descending=True):
doc = item.value doc = item.value
res.append(doc) res.append(doc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment