in lib/parser.py [0:0]
def extractValuesFromAPI(api):
values = {}
values["startDate"] = api["startDate"]
values["endDate"] = api["endDate"]
values["channel"] = api["channel"]
values["isRollout"] = api["isRollout"]
if values["endDate"] is None:
now = datetime.datetime.now();
values["endDate"] = now.strftime('%Y-%m-%d')
values["branches"] = []
for branch in api["branches"]:
values["branches"].append({'name': branch["slug"]})
return values