Scripts updated to do Anthology work. Added Anthology's GAS Script. Pipedrive's Sitemap. and Zenjob templates.

This commit is contained in:
Norm Rasmussen
2024-01-04 16:51:28 -05:00
parent ad5a26d5d8
commit ce261975ca
14 changed files with 960 additions and 114 deletions

Binary file not shown.

View File

@ -21,17 +21,15 @@ def get_groups(APIKEY):
nextlink = data["links"]
for response in data["data"]:
created_at = response["attributes"]["created_at"]
if created_at.startswith("2023"):
group_id = response["id"]
group_name = response["attributes"]["name"]
# print(group_name)
groups_dict = {
"id": group_id,
"name": group_name,
# "created_at": created_at,
}
groups.append(groups_dict)
# created_at = response["attributes"]["created_at"]
# if created_at.startswith("2023"):
group_id = response["id"]
group_name = response["attributes"]["name"]
# print(group_name)
groups_dict = {
group_name : group_id
}
groups.append(groups_dict)
if "next" not in nextlink:
break

View File

@ -23,9 +23,10 @@ def get_courses():
nextlink = response["links"]
for item in response["data"]:
id = item["id"]
name = item["attributes"]["name"]
list_of_ids.append(id)
idict = { item["attributes"]["name"] : item["id"] }
# id = item["id"]
# name = item["attributes"]["name"]
list_of_ids.append(idict)
if "next" not in nextlink:
break