Skip to content

Commit

Permalink
fix #161
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Aug 30, 2013
1 parent e4a7457 commit 12eb844
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions couchdbkit/designer/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def pushapps(path, dbs, atomic=True, export=False, couchapprc=False):
docs1 = []
for doc in e.errors:
try:
doc['_rev'] = db.last_rev(doc['_id'])
doc['_rev'] = db.get_rev(doc['_id'])
docs1.append(doc)
except ResourceNotFound:
pass
Expand Down Expand Up @@ -483,7 +483,7 @@ def pushdocs(path, dbs, atomic=True, export=False):
else:
newdoc = doc.copy()
try:
rev = db.last_rev(doc['_id'])
rev = db.get_rev(doc['_id'])
newdoc.update({'_rev': rev})
except ResourceNotFound:
pass
Expand All @@ -495,7 +495,7 @@ def pushdocs(path, dbs, atomic=True, export=False):
docs1 = []
for doc in e.errors:
try:
doc['_rev'] = db.last_rev(doc['_id'])
doc['_rev'] = db.get_rev(doc['_id'])
docs1.append(doc)
except ResourceNotFound:
pass
Expand Down

0 comments on commit 12eb844

Please sign in to comment.