Skip to content

Commit 76e12c2

Browse files
committed
removed reading in extra information
1 parent 48dd4df commit 76e12c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

oercommons/oer_scratcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ def batch_retrieve(session, lcs, batch_start, writer):
113113
"Media Format": "",
114114
"Languages": "",
115115
"Primary User": "",
116-
"Educational Use": "",
116+
"Educational Use": ""
117117
}
118118
for item in attribute:
119-
if ("title" in item.attrib) and ("value" in item.attrib):
119+
if ("title" in item.attrib) and ("value" in item.attrib) and item.attrib["title"] in temp:
120120
temp[item.attrib["title"]] = item.attrib["value"]
121121
writer.writerow([lcs] + [date] + list(temp.values()))
122122

@@ -194,7 +194,7 @@ def test_xml_parse():
194194
"Media Format": "",
195195
"Languages": "",
196196
"Primary User": "",
197-
"Educational Use": "",
197+
"Educational Use": ""
198198
}
199199

200200
for item in attribute:

0 commit comments

Comments
 (0)