Skip to content

Commit

Permalink
Add more comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper committed Nov 23, 2023
1 parent f655074 commit 6353c6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jupyter_server/services/contents/filemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ async def _notebook_model(self, path, content=True, require_hash=False):
model["format"] = "json"
self.validate_notebook_model(model, validation_error)
if require_hash:
# FIXME: Here we may read file twice while content=True
model["hash"] = await self._get_hash_from_file(os_path)

return model
Expand Down

0 comments on commit 6353c6a

Please sign in to comment.