Skip to content

Commit 0da68dd

Browse files
fix: explicitly check if file is a jupyter notebook instead of using glob pattern
1 parent e19ec64 commit 0da68dd

File tree

1 file changed

+2
-0
lines changed
  • grader_service/convert/converters

1 file changed

+2
-0
lines changed

grader_service/convert/converters/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ def matches_allowed_patterns(file_path):
264264
"""
265265
Check if a file matches any of the allowed glob patterns.
266266
"""
267+
if file_path.endswith(".ipynb"):
268+
return False
267269
return any(fnmatch.fnmatch(file_path, pattern) for pattern in files_patterns)
268270

269271
def is_ignored(file_path):

0 commit comments

Comments
 (0)