small script changes and notes

This commit is contained in:
Norm Rasmussen
2023-05-12 16:45:50 -04:00
parent aa64ae8ba5
commit 5c8b9a7a3b
29 changed files with 695 additions and 1702 deletions

View File

@ -23,18 +23,20 @@ def get_course():
status = response["attributes"]["status"]
uuid = response["id"]
name = response["attributes"]["name"]
build_url = response["links"]["builder"]["href"]
course_dict = {
"id": uuid,
"name": name,
"status": status,
"url": f"https://walmart.northpass.com/app/courses/{uuid}",
"build_url": build_url
# "url": f"https://walmart.northpass.com/app/courses/{uuid}",
}
# FIX: Up until here, each course gets read to the terminal.
# FIX: After this, something is being overwritten.
cat_id = response["relationships"]["categories"]["data"]
# get_cat_name(cat_id, course_dict, courses)
get_cat_name(cat_id, course_dict, courses)
if "next" not in nextlink:
break