Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 17, 2022
1 parent 16cd786 commit 4e47dcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jupyter_server_fileid/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from jupyter_server_fileid.manager import FileIdManager

from .handlers import FilePath2IdHandler, FileId2PathHandler
from .handlers import FileId2PathHandler, FilePath2IdHandler


class FileIdExtension(ExtensionApp):
Expand Down Expand Up @@ -57,6 +57,6 @@ def initialize_handlers(self):
(
r"/api/fileid/path/(.*)",
FileId2PathHandler,
)
),
],
)
3 changes: 1 addition & 2 deletions jupyter_server_fileid/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class FileIdAPIHandler(APIHandler):


class FilePath2IdHandler(FileIdAPIHandler):

@web.authenticated
@authorized
async def get(self, path):
Expand Down Expand Up @@ -45,8 +44,8 @@ async def put(self, path):
self.set_status(201)
return self.finish(str(idx))

class FileId2PathHandler(FileIdAPIHandler):

class FileId2PathHandler(FileIdAPIHandler):
@web.authenticated
@authorized
async def get(self, idx):
Expand Down

0 comments on commit 4e47dcd

Please sign in to comment.