Skip to content

Commit 5c67797

Browse files
authored
Use fileId instead of path in the store (#174)
* Use fileId instead as path when storing the updates * Updates file name in the store * Run pre-commit
1 parent b88ed6a commit 5c67797

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

jupyter_collaboration/handlers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import json
88
import time
99
import uuid
10-
from pathlib import Path
1110
from typing import Any
1211

1312
from jupyter_server.auth import authorized
@@ -85,9 +84,7 @@ async def prepare(self):
8584
)
8685

8786
file = self._file_loaders[file_id]
88-
path = self._file_id_manager.get_path(file_id)
89-
path = Path(path)
90-
updates_file_path = str(path.parent / f".{file_type}:{path.name}.y")
87+
updates_file_path = f".{file_type}:{file_id}.y"
9188
ystore = self._ystore_class(path=updates_file_path, log=self.log)
9289
self.room = DocumentRoom(
9390
self._room_id,

0 commit comments

Comments
 (0)