Larson notes. Some changes to templates
This commit is contained in:
BIN
Custom_Templates/customer_templates/Terminus-Employees/.DS_Store
vendored
Normal file
BIN
Custom_Templates/customer_templates/Terminus-Employees/.DS_Store
vendored
Normal file
Binary file not shown.
@ -48,8 +48,10 @@
|
||||
}
|
||||
|
||||
.resource-title, .resource-subtitle {
|
||||
min-height: 40px;
|
||||
color: #fff;
|
||||
margin-bottom: 20px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.resource-title {
|
||||
|
||||
@ -0,0 +1,70 @@
|
||||
<footer class="np-footer">
|
||||
<div class="np-footer-top">
|
||||
{% if current_school.logo_url %}
|
||||
<h2 class="np-footer-logo">
|
||||
<a href="{% route home %}">
|
||||
<img
|
||||
alt="{{ current_school.name }}"
|
||||
class="np-footer-logo-image"
|
||||
src="{{ current_school.logo_url }}"
|
||||
/>
|
||||
</a>
|
||||
</h2>
|
||||
{% else %}
|
||||
<div class="np-school-name np-header-font-color">
|
||||
{{ current_school.name }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="np-footer-bottom">
|
||||
<nav class="np-footer-social-links">
|
||||
{% if website_footer.show_social_media_links? %}
|
||||
<ul class="np-footer-social-links-list">
|
||||
{% for social_media_link in website_footer.social_media_links %}
|
||||
<li class="np-footer-social-links-item">
|
||||
<a
|
||||
class="np-footer-social-links-link np-button-color"
|
||||
href="{{ social_media_link.link }}"
|
||||
target="_blank" title="{{ social_media_link.name }}"
|
||||
>
|
||||
<i class="np-footer-social-links-icon
|
||||
np-button-color
|
||||
fab fa-{{ social_media_link.name }}"
|
||||
></i>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</nav>
|
||||
|
||||
{% if website_footer.show_customer_service_email? and
|
||||
website_footer.school_customer_service_email
|
||||
%}
|
||||
<div class="np-footer-support">
|
||||
<div class="np-footer-support-item np-footer-support-help">
|
||||
{% t .need_help %}
|
||||
</div>
|
||||
<div class="np-footer-support-item np-footer-support-email">
|
||||
{% t .email %}
|
||||
</div>
|
||||
<a
|
||||
class="np-footer-support-item np-footer-support-link np-button-color"
|
||||
href="mailto:{{ website_footer.school_customer_service_email }}"
|
||||
>
|
||||
{{ website_footer.school_customer_service_email }}
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<style>
|
||||
@media screen and (min-width: 768px) {
|
||||
.np-footer-top {
|
||||
flex-direction: column-reverse;
|
||||
align-items: flex-end;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -164,3 +164,11 @@
|
||||
</div> {% endcomment %}
|
||||
|
||||
{% include "messages" %}
|
||||
|
||||
<style>
|
||||
@media screen and (min-width: 768px) {
|
||||
.np-header-logo-image {
|
||||
height: 70px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,11 @@
|
||||
<div class="np-homepage-hero">
|
||||
<img class="np-homepage-hero-image"
|
||||
src="{{ image_url }}"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.np-homepage-hero-image {
|
||||
height: auto;
|
||||
}
|
||||
</style>
|
||||
@ -1,10 +1,6 @@
|
||||
{% include "header" %}
|
||||
{% include "course_version_outdated_alert", courses: courses.in_catalog %}
|
||||
<div class="np-homepage-hero">
|
||||
<img class="np-homepage-hero-image"
|
||||
src="https://s3.amazonaws.com/static.northpass.com/Terminus/terminus-LMS-learn-without-limits+Catalog+Header.jpg"
|
||||
/>
|
||||
</div>
|
||||
{% include 'hero_image', image_url: "https://s3.amazonaws.com/static.northpass.com/Terminus/terminus-LMS-learn-without-limits+Catalog+Header.jpg" %}
|
||||
{% include "sub_navigation" %}
|
||||
<main class="np-main np-catalog np-subpage-container np-max-width">
|
||||
<div class="np-catalog-header-wrapper">
|
||||
|
||||
@ -1,11 +1,6 @@
|
||||
{% include "header" %}
|
||||
{% include "course_version_outdated_alert", courses: courses.featured %}
|
||||
|
||||
<div class="np-homepage-hero">
|
||||
<img class="np-homepage-hero-image"
|
||||
src="https://s3.amazonaws.com/static.northpass.com/Terminus/terminus-LMS-academy-3+Dashboard+Header.jpg"
|
||||
/>
|
||||
</div>
|
||||
{% include 'hero_image', image_url:"https://s3.amazonaws.com/static.northpass.com/Terminus/terminus-LMS-academy-3rev.jpg" %}
|
||||
{% include "sub_navigation" %}
|
||||
<main class="np-main np-dashboard np-subpage-container np-max-width">
|
||||
<div class="row np-flex-center">
|
||||
|
||||
@ -1,11 +1,7 @@
|
||||
{% include "header" %}
|
||||
{% include "course_version_outdated_alert", courses: courses.enrolled %}
|
||||
{% if current_person.signed_in? %}
|
||||
<div class="np-homepage-hero">
|
||||
<img class="np-homepage-hero-image"
|
||||
src="https://s3.amazonaws.com/static.northpass.com/Terminus/terminus-LMS-academy-3+Homepage+Header.jpg"
|
||||
/>
|
||||
</div>
|
||||
{% include 'hero_image', image_url: "https://s3.amazonaws.com/static.northpass.com/Terminus/terminus-LMS-academy-3+Homepage+Header.jpg" %}
|
||||
{% include "sub_navigation" %}
|
||||
<main class="np-main np-dashboard np-subpage-container np-max-width">
|
||||
<div class="row np-flex-center">
|
||||
|
||||
@ -8,6 +8,6 @@ walmartprod = "6hUfJdAartHTHhHc0WIRZYPWe"
|
||||
recast = "9LISLpq7Ebqot3Xrggn5twKWZ"
|
||||
mizuno = "stXNF84HWL8aCGeRjHEo2rJ1U"
|
||||
sps = "VNDXh8K4tLYJ-Nvp78bo6w"
|
||||
anthology = "BwDUDT3mM6xzubFOgrPZNfL53"
|
||||
anthology = "8ALsk8jDOlynEwn8ScMBSnG87"
|
||||
talkspace_1099 = "jpfQoIc2i5S6iq4saFjBOEkbt"
|
||||
doximity_internal = "vAnSR4CvxpII6buj3uT23MPBY"
|
||||
|
||||
Binary file not shown.
@ -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__":
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user