Skip to content

Instantly share code, notes, and snippets.

@gadamc
Created February 9, 2012 17:07
Show Gist options
  • Save gadamc/1781205 to your computer and use it in GitHub Desktop.
Save gadamc/1781205 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from couchdbkit import Server, Database
s = Server('https://edwdbik.fzk.de:6984')
db = s['automat']
vr = db.view('cryo_2/getData2', reduce=False, descending=True, startkey=["T_PT1", 1318357552], endkey=["T_PT1", 0], limit = 1)
value = vr.first()['value']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment