From 0bc9691d6900eab37fa18a94648d4def8f79d3d8 Mon Sep 17 00:00:00 2001 From: Ryan Dale Date: Sun, 14 Apr 2024 08:58:56 -0400 Subject: [PATCH] update parser --- trackhub/parse.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trackhub/parse.py b/trackhub/parse.py index 4accdde5..c1200a6f 100644 --- a/trackhub/parse.py +++ b/trackhub/parse.py @@ -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 , 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]