mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Lint fix
This commit is contained in:
@@ -18,19 +18,23 @@ def make_worksheet(title):
|
|||||||
def write_pdf(worksheet):
|
def write_pdf(worksheet):
|
||||||
worksheet.write_pdf()
|
worksheet.write_pdf()
|
||||||
|
|
||||||
|
|
||||||
def add_section_title(worksheet, task_id):
|
def add_section_title(worksheet, task_id):
|
||||||
title = genList[task_id][1]
|
title = genList[task_id][1]
|
||||||
worksheet.add_instruction(title)
|
worksheet.add_instruction(title)
|
||||||
|
|
||||||
|
|
||||||
def add_task_to_worksheet(worksheet, task_id, count):
|
def add_task_to_worksheet(worksheet, task_id, count):
|
||||||
generator = genList[task_id][2]
|
generator = genList[task_id][2]
|
||||||
for i in range(count):
|
for i in range(count):
|
||||||
worksheet.add_problem(generator()[0])
|
worksheet.add_problem(generator()[0])
|
||||||
|
|
||||||
|
|
||||||
def add_section_with_task_to_worksheet(worksheet, task_id, count):
|
def add_section_with_task_to_worksheet(worksheet, task_id, count):
|
||||||
add_section_title(worksheet, task_id)
|
add_section_title(worksheet, task_id)
|
||||||
add_task_to_worksheet(worksheet, task_id, count)
|
add_task_to_worksheet(worksheet, task_id, count)
|
||||||
|
|
||||||
|
|
||||||
def make_pdf(task_id, count):
|
def make_pdf(task_id, count):
|
||||||
title = genList[task_id][1]
|
title = genList[task_id][1]
|
||||||
worksheet = make_worksheet(title)
|
worksheet = make_worksheet(title)
|
||||||
|
|||||||
Reference in New Issue
Block a user