Skip to content

Commit

Permalink
Do not add default config to metadata
Browse files Browse the repository at this point in the history
Fixes  #17
  • Loading branch information
mwouts committed Jul 18, 2018
1 parent a58c721 commit abd9694
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions nbrmd/contentsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,10 @@ def _read_notebook(self, os_path, as_version=4,
as_version=as_version,
load_alternative_format=False)

# We store in the metadata the alternative and sourceonly formats
trusted = self.notary.check_signature(nb)
nb.metadata['nbrmd_formats'] = nbrmd_formats
nb.metadata['nbrmd_sourceonly_format'] = source_format

if nb_outputs is not None:
combine.combine_inputs_with_outputs(nb, nb_outputs)
trusted = self.notary.check_signature(nb_outputs)

if trusted:
self.notary.sign(nb)
if self.notary.check_signature(nb_outputs):
self.notary.sign(nb)

return nb

Expand Down

0 comments on commit abd9694

Please sign in to comment.