Skip to content

Commit

Permalink
update parser
Browse files Browse the repository at this point in the history
  • Loading branch information
daler committed Apr 14, 2024
1 parent 11a1d0d commit 0bc9691
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions trackhub/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ def keep(tag):
for i in d:

div = i.parent

# 2024-04-13: maxWindowCoverage appears to be wrapped in an
# additional <code>, so we need to get *it's* parent.
if div.name == 'code': # not 'div'...
div = div.parent

_id = div.attrs['class']
assert len(_id) == 1
_id = _id[0]
Expand Down

0 comments on commit 0bc9691

Please sign in to comment.