readabilite: write_all use "node" instead of "item"
parent
a61b259792
commit
386bafd391
|
@ -115,8 +115,8 @@ def score_all(root):
|
||||||
|
|
||||||
|
|
||||||
def write_score_all(root, grades):
|
def write_score_all(root, grades):
|
||||||
for item in root.iter():
|
for node in root.iter():
|
||||||
item.attrib['score'] = str(int(grades[item]))
|
node.attrib['score'] = str(int(grades[node]))
|
||||||
|
|
||||||
|
|
||||||
def clean_html(root):
|
def clean_html(root):
|
||||||
|
|
Loading…
Reference in New Issue