With the current state of automation scripts, this is not possible anymore to launch script with multiple auto configs.
14 lines
482 B
Python
14 lines
482 B
Python
from common import dates, http
|
|
from common.releasedata import ProductData, config_from_argv
|
|
|
|
config = config_from_argv()
|
|
with ProductData(config.product) as product_data:
|
|
data = http.fetch_json(config.url)
|
|
for v in data:
|
|
if v['type'] == 'development':
|
|
continue
|
|
|
|
version = v["version"]
|
|
date = dates.parse_datetime(v["date"], to_utc=False) # utc kept for now for backwards compatibility
|
|
product_data.declare_version(version, date)
|