diff --git a/Custom_Templates/customer_templates/Sandata Learn/styles.css.liquid b/Custom_Templates/customer_templates/Sandata Learn/styles.css.liquid
index e6004030..c731d4bd 100644
--- a/Custom_Templates/customer_templates/Sandata Learn/styles.css.liquid
+++ b/Custom_Templates/customer_templates/Sandata Learn/styles.css.liquid
@@ -13,7 +13,8 @@
@media screen and (min-width: 768px){
header{
- background: url(https://s3.amazonaws.com/static.northpass.com/sandata/sandataBanner.jpg) !important;
+ background: url({{ homepage.artwork_url }})
+ /* background: url(https://s3.amazonaws.com/static.northpass.com/sandata/sandataBanner.jpg) !important; */
background-color: #fff !important;
background-position: center !important;
background-repeat: no-repeat !important;
diff --git a/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_courses_catalog.html.liquid b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_courses_catalog.html.liquid
index a32715d5..2d4e77c6 100644
--- a/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_courses_catalog.html.liquid
+++ b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_courses_catalog.html.liquid
@@ -1,7 +1,7 @@
{% if courses.in_catalog.any? %}
{% for course in courses.in_catalog %}
- {% unless course.properties.is_article_course %}
+ {% unless course.properties.is_article_course %}
{% if course.id == "6cc26c57-34db-4b8e-a38b-ad321ce18add" or course.id == "ac4fbf2e-ed8f-404d-b995-f0ef73481466" %}
{% if current_person.properties.hide_api_certification_exam_course == false %}
@@ -20,7 +20,7 @@
{% include "cards_course" with course %}
{% endif %}
- {% endif %}
+ {% endif %}
{% endunless %}
{% endfor %}
@@ -31,4 +31,4 @@
%}
{% endcapture %}
{% include "courses_zero_state", message: message %}
-{% endif %}
\ No newline at end of file
+{% endif %}
diff --git a/Scripts/API_Tests/bulk_invite_and_props.py b/Scripts/API_Tests/bulk_invite_and_props.py
index 2c74e653..40ff3178 100644
--- a/Scripts/API_Tests/bulk_invite_and_props.py
+++ b/Scripts/API_Tests/bulk_invite_and_props.py
@@ -6,13 +6,13 @@ import pandas as pd
import Apikeys
pp = pprint.PrettyPrinter(indent=4)
-APIKEY = Apikeys.CHUBB
+APIKEY = Apikeys.SANDATA
HEADERS = {
"accept": "application/json",
"X-Api-Key": APIKEY,
}
BASEURL = "https://api.northpass.com/v2/"
-IMPORTFILE = "/Users/normrasmussen/Downloads/chubb.csv"
+IMPORTFILE = "/Users/normrasmussen/Downloads/sandata-employees.csv"
def bulk_invite_and_group():
@@ -59,14 +59,17 @@ def bulk_invite_and_group():
print(f"Completed. Status code is {response.status_code}")
print(response.text)
+ # add_props()
def add_props():
errorlist = []
df = pd.DataFrame()
data = pd.read_csv(IMPORTFILE)
for dat in data.iterrows():
- agency_name = dat[1][3]
- learner_email = dat[1][2]
+ # agency_name = dat[1][3]
+ agency_name = "EMPLOYEE"
+ learner_email = dat[1][1]
+ print(learner_email)
ppl_search = f"{BASEURL}people?filter[email][eq]={learner_email}"
ppl_response = requests.get(ppl_search, headers=HEADERS)
try:
@@ -79,7 +82,7 @@ def add_props():
payload = {
"data": [
{
- "attributes": {"properties": {"agency name": agency_name }},
+ "attributes": {"properties": {"medicaid_id": agency_name }},
"id": learner_uuid,
"type": "person_properties",
}
@@ -99,5 +102,5 @@ def add_props():
if __name__ == "__main__":
- # bulk_invite_and_group()
add_props()
+#bulk_invite_and_group()