Skip to content

Commit

Permalink
store previous blob
Browse files Browse the repository at this point in the history
  • Loading branch information
vangheem committed Feb 21, 2018
1 parent 7ffe32c commit d102db1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guillotina/files/dbfile.py
Expand Up @@ -23,6 +23,8 @@ async def init_upload(self, context):
if cleanup is None or cleanup.should_clean:
bfile = self._blob.open('r')
await bfile.async_del()
else:
self._previous_blob = self._blob
blob = Blob(context)
self._blob = blob

Expand Down

0 comments on commit d102db1

Please sign in to comment.