fix: merge issue
This commit is contained in:
parent
bdee9f46e3
commit
76cfaf93ad
1 changed files with 6 additions and 8 deletions
|
|
@ -96,8 +96,6 @@ class InstalledExtensionMiddleware:
|
||||||
self.app = app
|
self.app = app
|
||||||
|
|
||||||
async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
|
async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
|
||||||
pathname = scope["path"].split("/")[1]
|
|
||||||
if pathname in settings.lnbits_disabled_extensions:
|
|
||||||
path_elements = scope["path"].split("/")
|
path_elements = scope["path"].split("/")
|
||||||
if len(path_elements) > 2:
|
if len(path_elements) > 2:
|
||||||
_, path_name, path_type, *rest = path_elements
|
_, path_name, path_type, *rest = path_elements
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue