Skip to content

Commit

Permalink
Update check_data_type_metadata.py Corrected indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
KesharwaniArpita authored Oct 18, 2024
1 parent fd25c2a commit ec399ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/scribe_data/check/check_data_type_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def check_language_subdirs(lang_dir, meta_lang=None):
if language.is_dir():
meta_language = meta_lang or language.name.lower()
data_types_in_dir = []
# Skip sub-languages if they are not explicitly listed in the metadata
if is_sub_language and meta_language not in data_type_metadata:
continue

if is_sub_language and meta_language not in data_type_metadata:
continue
for data_type in language.iterdir():
if data_type.is_dir():
data_types_in_dir.append(data_type.name.lower())
Expand All @@ -42,6 +42,7 @@ def check_language_subdirs(lang_dir, meta_lang=None):

return discrepancies


# Start checking from the base language directory
discrepancies = check_language_subdirs(LANGUAGE_DATA_EXTRACTION_DIR)

Expand Down

0 comments on commit ec399ae

Please sign in to comment.