Skip to content

fetch_attachment does not consider '_rev_' #192

Description

@dedalus2000

As far I can see (and test) fetch_attachment does not consider the _rev field when it is passed in the "doc".

This can cause problems: we are going to get always the latest document, avoiding any conflict.

Here my patch:

$ diff client.py ~/sources/couchdbkit-0.6.5/couchdbkit/client.py 
855d854
<             doc = {}
863c862
<         resp = self.res(docid).get(name, headers=headers, rev=doc.get('_rev'))

---
>         resp = self.res(docid).get(name, headers=headers)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions