🐛 fix(endpoints.py): fix comparison of path variable to string in get_all() function to prevent duplicate processing of paths

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-15 10:04:40 -03:00
commit e63d6aa943

View file

@ -46,7 +46,7 @@ def get_all():
custom_component_dicts = []
processed_paths = []
for path in settings.COMPONENTS_PATH:
if path in processed_paths:
if str(path) in processed_paths:
continue
custom_component_dict = build_langchain_custom_component_list_from_path(
str(path)