Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Fixes #11 Saves the downloaded submissions and replies #12

Merged
merged 2 commits into from Oct 12, 2018

Conversation

kushaldas
Copy link
Contributor

Now we are explicitly closing NamedTemporaryFile and also marking
it not to delete on save.

Now we are explicitly closing NamedTemporaryFile and also marking
it not to delete on save.
Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ diff looks good
✅ followed STR in #11 to ensure the bug is resolved
✅ added regression test

fh = tempfile.NamedTemporaryFile()
# Create a NamedTemporaryFile, we don't want
# to delete it after closing.
fh = tempfile.NamedTemporaryFile(delete=False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: delete=False is OK here since it is a temporary file, and as such on each reboot all these (encrypted) files will be deleted

@redshiftzero redshiftzero merged commit 9d040ce into master Oct 12, 2018
@redshiftzero redshiftzero deleted the savefile branch October 12, 2018 23:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants