redmine: Fix missing id class on older versions
Some version of redmine do not have td class="id". Luckily, we can easily get it another way.
This commit is contained in:
parent
de45700a49
commit
c108ca3fc5
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ class IssuesPage(BaseIssuePage):
|
||||||
for tr in issues.getiterator('tr'):
|
for tr in issues.getiterator('tr'):
|
||||||
if not tr.attrib.get('id', '').startswith('issue-'):
|
if not tr.attrib.get('id', '').startswith('issue-'):
|
||||||
continue
|
continue
|
||||||
issue = {}
|
issue = {'id': tr.attrib['id'].replace('issue-', '')}
|
||||||
for td in tr.getiterator('td'):
|
for td in tr.getiterator('td'):
|
||||||
field = td.attrib.get('class', '')
|
field = td.attrib.get('class', '')
|
||||||
if field in ('checkbox','todo',''):
|
if field in ('checkbox','todo',''):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue