master
Michael Murtaugh 5 months ago
parent 075f0999f1
commit b9116a6574

@ -162,7 +162,7 @@
</div>
</div>
</div>
<div id="categories" class="row" typeof="xpub:gradshow">
<div id="categories" class="row">
<div class="col1">
<h2>Year</h2>
</div>

@ -32,11 +32,11 @@ def patch_project_div (div):
raise Exception(f"{title}: too many p columns")
def patch_year_div(div):
div.attrib["typeof"] = "xpub:gradshow"
col1 = div.find('.//div[@class="col1"]')
logo = col1.find('.//img[@class="logo"]')
if logo is None:
return
div.attrib["typeof"] = "xpub:gradshow"
logo.attrib["property"] = "dc:image"
year = None
for pi, p in enumerate(col1.findall("./p")):

Loading…
Cancel
Save