[jira] Refactor script (#232)
Make the script more readable, mostly by: - using the Product classes, - a little bit of renaming and documentation.
This commit is contained in:
@@ -13,8 +13,8 @@ r.html.render(sleep=1, scrolldown=3)
|
||||
|
||||
for version_block in r.html.find('.versions-list'):
|
||||
version = version_block.find('a.product-versions', first=True).attrs['data-version']
|
||||
date_text = version_block.find('.release-date', first=True).text
|
||||
product.declare_version(version, dates.parse_date(date_text))
|
||||
date = dates.parse_date(version_block.find('.release-date', first=True).text)
|
||||
product.declare_version(version, date)
|
||||
|
||||
product.write()
|
||||
print("::endgroup::")
|
||||
|
||||
Reference in New Issue
Block a user