Skip to content

Commit 9fff32d

Browse files
committed
workbook 자동화
1 parent 1825c85 commit 9fff32d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

workbook/actions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def get_problem_info(workbook_url):
3838
prob_name += txt[i]
3939
i += 1
4040
ret.append((prob_id, prob_name))
41+
print(f'Found {len(ret)} problems in {workbook_url}')
42+
print(ret)
4143
return ret
4244

4345
CATEGORY = ["연습 문제", "기본 문제✔", "기본 문제", "응용 문제✔", "응용 문제"]
@@ -57,6 +59,7 @@ def gen_ind_workbook(attrs, category):
5759
solution_path = f'../{attr[0]}/solutions/'
5860
category_idx = 0
5961
problem_infos = get_problem_info(attr[2])
62+
print(f'[{attr[0]}] {attr[1]}: {len(problem_infos)} problems')
6063
prob_table = '| 문제 분류 | 문제 | 문제 제목 | 정답 코드 |\n| :--: | :--: | :--: | :--: |\n'
6164
for prob_id, prob_name in problem_infos:
6265
if prob_id in category[chapter_idx]:

0 commit comments

Comments
 (0)