diff --git a/Custom_Templates/customer_templates/Terminus-Employees/.DS_Store b/Custom_Templates/customer_templates/Terminus-Employees/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Custom_Templates/customer_templates/Terminus-Employees/.DS_Store differ diff --git a/Custom_Templates/customer_templates/Terminus-Employees/_additional_resources.html.liquid b/Custom_Templates/customer_templates/Terminus-Employees/_additional_resources.html.liquid index bdc5d5da..d353b5e6 100644 --- a/Custom_Templates/customer_templates/Terminus-Employees/_additional_resources.html.liquid +++ b/Custom_Templates/customer_templates/Terminus-Employees/_additional_resources.html.liquid @@ -48,8 +48,10 @@ } .resource-title, .resource-subtitle { + min-height: 40px; color: #fff; margin-bottom: 20px; + padding: 0 10px; } .resource-title { diff --git a/Custom_Templates/customer_templates/Terminus-Employees/_footer.html.liquid b/Custom_Templates/customer_templates/Terminus-Employees/_footer.html.liquid new file mode 100644 index 00000000..2757f306 --- /dev/null +++ b/Custom_Templates/customer_templates/Terminus-Employees/_footer.html.liquid @@ -0,0 +1,70 @@ + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Terminus-Employees/_header.html.liquid b/Custom_Templates/customer_templates/Terminus-Employees/_header.html.liquid index bfdacc4e..799a3bd8 100644 --- a/Custom_Templates/customer_templates/Terminus-Employees/_header.html.liquid +++ b/Custom_Templates/customer_templates/Terminus-Employees/_header.html.liquid @@ -164,3 +164,11 @@ {% endcomment %} {% include "messages" %} + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Terminus-Employees/_hero_image.html.liquid b/Custom_Templates/customer_templates/Terminus-Employees/_hero_image.html.liquid new file mode 100644 index 00000000..18a77ad9 --- /dev/null +++ b/Custom_Templates/customer_templates/Terminus-Employees/_hero_image.html.liquid @@ -0,0 +1,11 @@ +
+ +
+ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Terminus-Employees/catalog.html.liquid b/Custom_Templates/customer_templates/Terminus-Employees/catalog.html.liquid index 2cd057f6..957aa3dc 100644 --- a/Custom_Templates/customer_templates/Terminus-Employees/catalog.html.liquid +++ b/Custom_Templates/customer_templates/Terminus-Employees/catalog.html.liquid @@ -1,10 +1,6 @@ {% include "header" %} {% include "course_version_outdated_alert", courses: courses.in_catalog %} -
- -
+{% include 'hero_image', image_url: "https://s3.amazonaws.com/static.northpass.com/Terminus/terminus-LMS-learn-without-limits+Catalog+Header.jpg" %} {% include "sub_navigation" %}
diff --git a/Custom_Templates/customer_templates/Terminus-Employees/dashboard.html.liquid b/Custom_Templates/customer_templates/Terminus-Employees/dashboard.html.liquid index 11524553..72bc8ac7 100644 --- a/Custom_Templates/customer_templates/Terminus-Employees/dashboard.html.liquid +++ b/Custom_Templates/customer_templates/Terminus-Employees/dashboard.html.liquid @@ -1,11 +1,6 @@ {% include "header" %} {% include "course_version_outdated_alert", courses: courses.featured %} - -
- -
+{% include 'hero_image', image_url:"https://s3.amazonaws.com/static.northpass.com/Terminus/terminus-LMS-academy-3rev.jpg" %} {% include "sub_navigation" %}
diff --git a/Custom_Templates/customer_templates/Terminus-Employees/homepage.html.liquid b/Custom_Templates/customer_templates/Terminus-Employees/homepage.html.liquid index 969ba74a..5d1e860f 100644 --- a/Custom_Templates/customer_templates/Terminus-Employees/homepage.html.liquid +++ b/Custom_Templates/customer_templates/Terminus-Employees/homepage.html.liquid @@ -1,11 +1,7 @@ {% include "header" %} {% include "course_version_outdated_alert", courses: courses.enrolled %} {% if current_person.signed_in? %} -
- -
+ {% include 'hero_image', image_url: "https://s3.amazonaws.com/static.northpass.com/Terminus/terminus-LMS-academy-3+Homepage+Header.jpg" %} {% include "sub_navigation" %}
diff --git a/Scripts/API_Tests/Apikeys.py b/Scripts/API_Tests/Apikeys.py index 318291e3..750a79bb 100644 --- a/Scripts/API_Tests/Apikeys.py +++ b/Scripts/API_Tests/Apikeys.py @@ -8,6 +8,6 @@ walmartprod = "6hUfJdAartHTHhHc0WIRZYPWe" recast = "9LISLpq7Ebqot3Xrggn5twKWZ" mizuno = "stXNF84HWL8aCGeRjHEo2rJ1U" sps = "VNDXh8K4tLYJ-Nvp78bo6w" -anthology = "BwDUDT3mM6xzubFOgrPZNfL53" +anthology = "8ALsk8jDOlynEwn8ScMBSnG87" talkspace_1099 = "jpfQoIc2i5S6iq4saFjBOEkbt" doximity_internal = "vAnSR4CvxpII6buj3uT23MPBY" diff --git a/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc b/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc index aaba7f43..b531cdfb 100644 Binary files a/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc and b/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc differ diff --git a/Scripts/API_Tests/add_to_group_from_email_csv.py b/Scripts/API_Tests/add_to_group_from_email_csv.py index 8fa11c9c..a053f9ce 100644 --- a/Scripts/API_Tests/add_to_group_from_email_csv.py +++ b/Scripts/API_Tests/add_to_group_from_email_csv.py @@ -6,15 +6,20 @@ apiKey = Apikeys.doximity_internal def get_email(): + error_list = [] df = pd.read_csv("/Users/normrasmussen/Downloads/doximity.csv") for row in df.itertuples(): email = row[1] + email = email.lower() group_id = row[2] - # get_uuid(email, group_id, apiKey) - print(f"Email: {email} & Group: {group_id}") + group_id = group_id.replace("'", "") + get_uuid(email, group_id, apiKey, error_list) + # print(f"Email: {email} & Group: {group_id}") + print(error_list) -def get_uuid(email, group_id, apiKey): +def get_uuid(email, group_id, apiKey, error_list): + count = 0 url = f"https://api.northpass.com/v2/people?filter[email][eq]={email}" headers = { "accept": "*/*", @@ -22,14 +27,20 @@ def get_uuid(email, group_id, apiKey): "content-type": "application/json", } try: + count += 1 + print(f"Row: {count}, email: {email}") response = requests.get(url, headers=headers) data = response.json() - uuid = data["data"][0]["id"] - add_to_group(apiKey, uuid, group_id) - + try: + uuid = data["data"][0]["id"] + add_to_group(apiKey, uuid, group_id) + except IndexError as e: + print(f"Error, Index, {e}") + error_list.append(email) + pass response.raise_for_status() except requests.HTTPError as ex: - print(f"Error!! Details - {ex}") + print(f"Error getting the uuid!! Details - {ex}") raise ex except requests.Timeout: print("Timeout error") @@ -51,12 +62,10 @@ def add_to_group(apiKey, uuid, group_id): print(response.status_code) response.raise_for_status() except requests.HTTPError as ex: - print(f"Error!! Details - {ex}") + print(f"Error adding to group!! Details - {ex}") raise ex except requests.Timeout: print("Timeout error") - finally: - pass if __name__ == "__main__": diff --git a/Scripts/API_Tests/create_groups.py b/Scripts/API_Tests/create_groups.py index 76d44fb6..8587c129 100644 --- a/Scripts/API_Tests/create_groups.py +++ b/Scripts/API_Tests/create_groups.py @@ -4,27 +4,39 @@ import Apikeys apikey = Apikeys.anthology groups_to_create = [ - 'Engage', 'Encompass', 'Reach', - 'Student', 'Learn', 'Baseline', 'Ally', - 'Milestone','Raise', 'Accreditation', - 'Program Review', 'Portfolio', 'Outcomes', - 'Engage-Campus-wide Elections', - 'Engage-Co-Curricular Paths', 'Engage-ECIA', - 'Engage-Rooms and Reservations', 'Learn-Bb Reporting', - 'Learn-A4L'] + "Engage", + "Encompass", + "Reach", + "Student", + "Learn", + "Baseline", + "Ally", + "Milestone", + "Raise", + "Accreditation", + "Program Review", + "Portfolio", + "Outcomes", + "Engage-Campus-wide Elections", + "Engage-Co-Curricular Paths", + "Engage-ECIA", + "Engage-Rooms and Reservations", + "Learn-Bb Reporting", + "Learn-A4L", +] url = "https://api.northpass.com/v2/bulk/groups" headers = { - "accept": "application/json", - "content-type": "application/json", - "X-Api-Key": apikey, - } + "accept": "application/json", + "content-type": "application/json", + "X-Api-Key": apikey, +} payload2 = [] for group in groups_to_create: payload2.append({"name": group}) payload = {"data": {"attributes": {"groups": payload2}}} -print(payload) -# response = requests.post(url, json=payload, headers=headers) -# print(response.text) +# print(payload) +response = requests.post(url, json=payload, headers=headers) +print(response.text) # print(response)