mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-27 04:37:13 +00:00
style: fix ruff formatting in botmgr.py
This commit is contained in:
@@ -253,9 +253,7 @@ class PlatformManager:
|
|||||||
|
|
||||||
# Filter out disabled adapters from components list (for API responses)
|
# Filter out disabled adapters from components list (for API responses)
|
||||||
if disabled_adapters:
|
if disabled_adapters:
|
||||||
self.adapter_components = [
|
self.adapter_components = [c for c in self.adapter_components if c.metadata.name not in disabled_adapters]
|
||||||
c for c in self.adapter_components if c.metadata.name not in disabled_adapters
|
|
||||||
]
|
|
||||||
|
|
||||||
# initialize websocket adapter
|
# initialize websocket adapter
|
||||||
websocket_adapter_class = self.adapter_dict['websocket']
|
websocket_adapter_class = self.adapter_dict['websocket']
|
||||||
|
|||||||
Reference in New Issue
Block a user