Skip to content

Commit 8c8a6ec

Browse files
committed
ignored samples with excessively long names
1 parent bdcb770 commit 8c8a6ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

questionnaires/main.py

+5
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ def write_to_markdown(universities: dict, filename_map: FilenameMap, archived: b
242242
if archived:
243243
name += ' (已归档)'
244244
folder_name = join_path('dist', 'docs')
245+
246+
# Ignored samples with excessively long names
247+
if len(filename) > 150:
248+
continue
249+
245250
with open(join_path(folder_name, filename), 'w', encoding='utf-8') as f:
246251
# write header
247252
f.write(f'# {name}\n\n')

0 commit comments

Comments
 (0)