Skip to content

Instantly share code, notes, and snippets.

@k4nar
Last active August 29, 2015 14:06
Show Gist options
  • Save k4nar/1157e566650e95cae47b to your computer and use it in GitHub Desktop.
Save k4nar/1157e566650e95cae47b to your computer and use it in GitHub Desktop.
db = plug.entry_db
# ...
db.put('notes:{}'.format(id_rsrc), fid)
# ...
for key, fid in db.range('notes:'):
fid = key.split(b':')[-1]
# ...
# ...
fid = db.get('notes:{}'.format(id_src))
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment