From 9f224d3f5c2dab9f0aa9617f839ddd6ddee02c7b Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Thu, 6 Jul 2017 12:49:05 -0400 Subject: [PATCH] BUG: Write to correct location. --- bin/pgcontents | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pgcontents b/bin/pgcontents index d220cd3..91d3878 100755 --- a/bin/pgcontents +++ b/bin/pgcontents @@ -194,7 +194,7 @@ def fetch(db_url, user, filename, key, output, type, clear_output): if clear_output: ClearOutputPreprocessor().preprocess(nb, resources=None) - nbformat.write(nb, open(filename, 'w'), version=nbformat.NO_CONVERT) + nbformat.write(nb, open(output, 'w'), version=nbformat.NO_CONVERT) if __name__ == "__main__":