Scintilla templates for new launch. Trying to clean up Zenjob's workflow.

This commit is contained in:
Norm Rasmussen
2025-05-07 16:38:56 -04:00
parent 48d9a88181
commit 59707596c2
5 changed files with 183 additions and 13 deletions

View File

@ -26,9 +26,6 @@
</div>
{% if new_courses_count > 0 %}
<div class="onging-see-more-wrapper">
<a href="/app/dashboard">See more</a>
</div>
{% else %}
<script>console.log("{{new_courses_count}}")</script>
<div class="np-homepage-featured-empty">
@ -82,9 +79,6 @@
</div>
{% if ongoing_courses_count > 0 %}
<div class="ongoing-see-more-wrapper">
{% comment %} <a href="/app/dashboard">See more</a> {% endcomment %}
</div>
{% else %}
<script>console.log("{{ongoing_courses_count}}")</script>
<div class="np-homepage-featured-empty">
@ -110,7 +104,7 @@
</div>
{% endif %}
<div class="np-max-width np-homepage-row-wrapper">
<div class="np-max-width np-homepage-row-wrapper" style="padding-top:30px;">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12" style="display:flex; flex-direction:column;">
<div class="np-section-header">Progress Tracker</div>
@ -132,9 +126,6 @@
{% endfor %}
{% if lps_in_progress > 0 %}
<div class="see-more-wrapper">
<a href="/app/dashboard" style="margin-top:24px;">See more</a>
</div>
{% endif %}
{% if lps_in_progress == 0 %}
<div class="col-xs-12">

View File

@ -103,6 +103,7 @@ Basic Sandbox Group UUID = 9f5c51a3-8e02-4b81-9e48-7ec3adff7c70
</div>
{% if current_person.signed_in? %}
{% unless basic_3p_user %}
<div class="np-hidden-mobile np-header-search np-header-search-expanded">
<form action="{% route search %}" method="get" data-test="desktop-search">
<input
@ -115,6 +116,7 @@ Basic Sandbox Group UUID = 9f5c51a3-8e02-4b81-9e48-7ec3adff7c70
<i class="np-header-search-icon far fa-search"></i>
</form>
</div>
{% endunless %}
<div class="np-hidden-mobile np-header-avatar">
<button
class="np-header-avatar-button"

View File

@ -10,7 +10,7 @@
<p class="np-learning-path-banner-description" style="color: #1b3e4f; font-size: 20px; font-weight: 400; line-height: 20px; margin: 0 0 12px;">
Congratulations, you're Scintilla Replenishment Certified. Click the button below to add your accomplishment to LinkedIn!</p>
<div class="np-learning-path-banner-actions">
<a href="https://linkedin.com/profile/add/?startTask=Walmart%20Luminate%20Replenishment%20Certification&name=Walmart%20Luminate%20Replenishment%20Certification&organizationId=80427781&certUrl=https%3A%2F%2Fwalmartluminate.northpass.com"
<a href="https://linkedin.com/profile/add/?startTask=Walmart%20Scintilla%20Replenishment%20Certification&name=Walmart%20Scintilla%20Replenishment%20Certification&organizationId=80427781&certUrl=https%3A%2F%2Fwalmartluminate.northpass.com"
class="np-learning-path-banner-action np-learning-path-banner-action--primary">
Add to LinkedIn!</a>
</div>
@ -29,7 +29,7 @@
<p class="np-learning-path-banner-description" style="color: #1b3e4f; font-size: 20px; font-weight: 400; line-height: 20px; margin: 0 0 12px;">
Congratulations, you're Scintilla Sales Analysis Certified. Click the button below to add your accomplishment to LinkedIn!</p>
<div class="np-learning-path-banner-actions">
<a href="https://linkedin.com/profile/add/?startTask=Walmart%20Luminate%20Sales%20Analysis%20Certification&name=Walmart%20Luminate%20Sales%20Analysis%20Certification&organizationId=80427781&certUrl=https%3A%2F%2Fwalmartluminate.northpass.com" class="np-learning-path-banner-action np-learning-path-banner-action--primary">
<a href="https://linkedin.com/profile/add/?startTask=Walmart%20Scintilla%20Sales%20Analysis%20Certification&name=Walmart%20Scintilla%20Sales%20Analysis%20Certification&organizationId=80427781&certUrl=https%3A%2F%2Fwalmartluminate.northpass.com" class="np-learning-path-banner-action np-learning-path-banner-action--primary">
Add to LinkedIn!</a>
</div>
</div>
@ -46,7 +46,7 @@
<p class="np-learning-path-banner-description" style="color: #1b3e4f; font-size: 20px; font-weight: 400; line-height: 20px; margin: 0 0 12px;">
Congratulations, you're Scintilla Customer Insights Certified. Click the button below to add your accomplishment to LinkedIn!</p>
<div class="np-learning-path-banner-actions">
<a href="https://linkedin.com/profile/add/?startTask=Walmart%20Luminate%20Customer%20and%20Shopper%20Insights%20Certification&name=Walmart%20Luminate%20Customer%20Insights%20Certification&organizationId=80427781&certUrl=https%3A%2F%2Fwalmartluminate.northpass.com" class="np-learning-path-banner-action np-learning-path-banner-action--primary">
<a href="https://linkedin.com/profile/add/?startTask=Walmart%20Scintilla%20Customer%20and%20Shopper%20Insights%20Certification&name=Walmart%20Scintilla%20Customer%20Insights%20Certification&organizationId=80427781&certUrl=https%3A%2F%2Fwalmartluminate.northpass.com" class="np-learning-path-banner-action np-learning-path-banner-action--primary">
Add to LinkedIn!</a>
</div>
</div>

View File

@ -0,0 +1,156 @@
{
"payload": {
"data": {
"id": "8bb0dd29-60a5-44b8-8f09-fe1c7086e2d9",
"type": "quiz_completed_events",
"included": [
{
"id": "a663b26b-a42f-4877-9d99-044c60ecd079",
"type": "people",
"links": {
"self": "https://api.northpass.com/v1/people/a663b26b-a42f-4877-9d99-044c60ecd079",
"teaching": "https://app.northpass.com/people/a663b26b-a42f-4877-9d99-044c60ecd079"
},
"attributes": {
"name": "Taksh Hiteshbhai Vadaliya",
"sso_uid": "c7ecd68f-7a1f-40c3-ad5d-e5f23373c57b",
"created_at": "2024-08-01T17:26:50.000000+00:00",
"updated_at": "2025-05-07T16:57:00.000000+00:00",
"activated_at": "2024-08-01T17:26:56.000000+00:00",
"unsubscribed": false,
"last_active_at": "2025-05-07T16:57:00.000000+00:00"
},
"relationships": {
"school": {
"data": {
"id": "6e96bbdd-7818-4920-b79c-e46132939929",
"type": "schools"
}
}
}
},
{
"id": "6721c62c-b11b-4af9-92a3-a6d788845099",
"type": "courses",
"links": {
"self": "https://api.northpass.com/v1/courses/6721c62c-b11b-4af9-92a3-a6d788845099",
"build": {
"href": "https://app.northpass.com/courses/jqgjlapg/builder",
"methods": [
"get"
]
},
"clone": "https://app.northpass.com/courses/jqgjlapg/clone",
"preview": "/previews/courses/jqgjlapg",
"teaching": "https://app.northpass.com/courses/jqgjlapg"
},
"attributes": {
"name": "Health certificate - Follow up instruction",
"status": "live",
"for_sale": false,
"permalink": "jqgjlapg",
"created_at": "2024-11-19T15:37:43.000000+00:00",
"updated_at": "2025-05-07T16:47:42.000000+00:00",
"list_image_url": "https://cdn.filepicker.io/security=policy:eyJ3Ijo4MjAsImgiOjUwMCwiZml0IjoiY3JvcCIsImV4cGlyeSI6MTc0NjY4OTIzOSwiY2FsbCI6WyJyZWFkIiwiY29udmVydCIsInN0b3JlIiwicGljayIsInJlbW92ZSJdfQ==,signature:be84cd26ac634980e9e20f39d46ab61fbdb4325224db6efd18a329eeab818278/resize=width:820,height:500,fit:crop/oZkkVDDS9GcrrZ8igDY7",
"enrollments_count": 199738,
"share_course_link": "https://zenjob.northpass.com/app/courses/6721c62c-b11b-4af9-92a3-a6d788845099",
"course_enrollment_link": "https://zenjob.northpass.com/c/9e4e5be7e3b89b5ae518e6343d24e5324a94a3fd"
},
"relationships": {
"instructor_partnerships": {
"data": []
}
}
},
{
"id": "ef6c7e84-17f2-4d3c-a799-0792287a84d8",
"type": "activities",
"links": {
"teaching": "https://app.northpass.com/courses/jqgjlapg/builder/activities/bic8i3ea",
"course_builder": "https://app.northpass.com/courses/jqgjlapg/builder"
},
"attributes": {
"title": "Quiz",
"course_name": "Health certificate - Follow up instruction"
}
},
{
"id": "2d52bd9a-c840-426f-8982-5686e8610ee7",
"type": "quizzes",
"links": {
"self": {
"href": "https://api.northpass.com/v1/quizzes/2d52bd9a-c840-426f-8982-5686e8610ee7",
"methods": [
"delete"
]
},
"build": "https://app.northpass.com/quizzes/10976737/builder",
"analytics": "https://app.northpass.com/analytics/single_quiz_results/2d52bd9a-c840-426f-8982-5686e8610ee7"
},
"attributes": {
"name": "Follow-up instruction",
"quiz_type": "Quizzes::Static",
"created_at": "2023-09-15T10:09:25.000000+00:00"
},
"relationships": {
"person": {
"data": {
"id": "9aaa69d6-e590-4d21-8cf3-292f483f079e",
"type": "people"
}
},
"activities": {
"data": [
{
"id": "b909314d-f04d-4f7f-9a9b-f570b60dfa89",
"type": "activities"
},
{
"id": "ef6c7e84-17f2-4d3c-a799-0792287a84d8",
"type": "activities"
},
{
"id": "dce9fa04-48dc-45da-902f-234a74f8d600",
"type": "activities"
}
]
}
}
}
],
"attributes": {
"value": 100,
"created_at": "2025-05-07T16:57:04.000000+00:00",
"quiz_attempt_uuid": "40a7c1ab-8c76-47d3-b716-3a4c790d5965",
"minimum_passing_score": 100
},
"relationships": {
"quiz": {
"data": {
"id": "2d52bd9a-c840-426f-8982-5686e8610ee7",
"type": "activities"
}
},
"course": {
"data": {
"id": "6721c62c-b11b-4af9-92a3-a6d788845099",
"type": "courses"
}
},
"person": {
"data": {
"id": "a663b26b-a42f-4877-9d99-044c60ecd079",
"type": "people"
}
},
"activity": {
"data": {
"id": "ef6c7e84-17f2-4d3c-a799-0792287a84d8",
"type": "activities"
}
}
}
}
},
"params": {}
}

View File

@ -0,0 +1,21 @@
import requests
import json
with open('./sample_payload.json', 'r') as file:
input = json.load(file)
def main(input):
# input = input['input']
for items in input['payload']['data']['included']:
if items['type'] == 'quizzes':
try:
if items['name'] == 'Deutsch Einstufungstest':
print('quiz!')
except TypeError as h:
print(h)
elif items['type'] == 'people':
print('people')
if __name__ == "__main__":
main(input)