Fixed some more of the Luminate templates for Spanish templates. Wrote a quick addition to get all course IDs.

This commit is contained in:
Norm Rasmussen
2024-05-31 22:32:56 -04:00
parent bf13bb7131
commit 1c28a57244
7 changed files with 170 additions and 108 deletions

View File

@ -24,3 +24,4 @@ CIN7 = "51BNlRsLYKQxSu1q1UQq7F63j"
FULLSTORY = "ePChrDWLegENa2qnfb259O2Ki"
RENAISSANCE = "YFykqX1u0d3HveONc5I9CKnJ1"
SANDATA = "HdZFoXGCFpt8NnTOzIQY0kVDj"
LUMINATE_US = "p5fidpuedHaOlPnd8EcpxzQMG"

View File

@ -4,7 +4,7 @@ import Apikeys
import pprint
pp = pprint.PrettyPrinter(indent=4)
apiKey = Apikeys.WALMARTPROD
apiKey = Apikeys.LUMINATE_US
course_dict = {}
COURSES= [
@ -33,16 +33,17 @@ def get_course():
uuid = response["id"]
name = response["attributes"]["name"]
# build_url = response["links"]["builder"]["href"]
if name in COURSES:
print(uuid)
course_dict = {
"id": uuid,
"name": name,
"status": status,
# "build_url": build_url
# "url": f"https://walmart.northpass.com/app/courses/{uuid}",
}
courses.append(course_dict)
# if name in COURSES:
print(uuid)
course_dict = {
"id": uuid,
"name": name,
"status": status,
# "build_url": build_url
# "url": f"https://walmart.northpass.com/app/courses/{uuid}",
}
courses.append(course_dict)
# print(courses)
# FIX: Up until here, each course gets read to the terminal.
# FIX: After this, something is being overwritten.