We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 496d9a1 commit 0e90461Copy full SHA for 0e90461
1 file changed
lightbeam/lightbeam.py
@@ -255,9 +255,10 @@ def get_endpoints_with_data(self, filter_endpoints=None):
255
if os.path.isfile(sub_dir_item_path):
256
filename = os.path.basename(sub_dir_item)
257
extension = filename.rsplit(".", 1)[-1]
258
+ filename_without_extension = filename.rsplit(".", 1)[0]
259
if (
260
extension in self.DATA_FILE_EXTENSIONS # valid file extension
- and filename_without_extension in self.all_endpoints # valid endpoint
261
+ and data_dir_item in self.all_endpoints # valid endpoint
262
and data_dir_item in filter_endpoints # selected endpoint
263
):
264
has_data_file = True
0 commit comments