Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Jan 3, 2024
1 parent 8dd3307 commit fa8268a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jupyter_collaboration/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,13 @@ async def maybe_notify(self) -> None:
"""
Notifies subscribed rooms about out-of-band file changes.
"""
print("maybe notify")
do_notify = False
async with self._lock:
# Get model metadata; format and type are not need
model = await ensure_async(self._contents_manager.get(self.path, content=False))
print(model)
print(self.last_modified)

if self.last_modified is not None and self.last_modified < model["last_modified"]:
do_notify = True
Expand Down

0 comments on commit fa8268a

Please sign in to comment.