Luminate Templates, notes for walmart, Crayon changes.

This commit is contained in:
Norm Rasmussen
2023-06-14 17:30:03 -04:00
parent 1a6b3a630c
commit 73ae8fe55b
76 changed files with 7040 additions and 111 deletions

View File

@ -78,3 +78,7 @@ No Data - 11:51:24
['norm@northpass.com', '352630000352630', 100, 'Pass', '2023-06-09T15:51:30.133Z'] - 11:51:34
['norm@northpass.com', '352630000352630', 100, 'Pass', '2023-06-09T15:51:30.133Z'] - 11:51:39
['norm@northpass.com', '352630000352630', 100, 'Pass', '2023-06-09T15:51:30.133Z'] - 11:51:44
['norm@northpass.com', '352630000352630', 0, 'Fail', '2023-06-09T16:58:03.73Z'] - 12:58:37
['norm@northpass.com', '352630000352630', 100, 'Pass', '2023-06-09T15:51:30.133Z'] - 12:58:37
['norm@northpass.com', '352630000352630', 0, 'Fail', '2023-06-09T16:58:03.73Z'] - 12:59:04
['norm@northpass.com', '352630000352630', 100, 'Pass', '2023-06-09T15:51:30.133Z'] - 12:59:04

View File

@ -3,7 +3,7 @@ import requests
from datetime import datetime
def get_results():
threading.Timer(5.0, get_results).start()
# threading.Timer(5.0, get_results).start()
url = "https://ondemand.questionmark.com/deliveryodata/406287/Results"
params = "?$filter=ParticipantName eq 'norm@northpass.com'"
# params = "?$filter=ParticipantName eq 'tom.leggett@questionmark.com'"
@ -20,6 +20,7 @@ def get_results():
# response = requests.get(url, headers=headers)
response = requests.get(url_params, headers=headers)
data = response.json()
print(data)
data = data["value"]
now = datetime.now()
@ -39,7 +40,7 @@ def get_results():
finished = item["WhenFinished"]
datalist = [email, assesmentid, score, passval, finished]
print(datalist)
# print(datalist)
logfile = open("qm-log.txt", "a") # append mode
logfile.write(str(datalist))
logfile.write(f" - {current_time} \n")

View File

@ -0,0 +1,30 @@
{% include "header" %}
{% include "course_version_outdated_alert", courses: courses.enrolled %}
{% include "sub_navigation" %}
<main class="np-main np-dashboard np-subpage-container np-max-width">
<div class="row np-flex-center">
<div class="col-xs-12 col-sm-8">
{% if features.learning_paths? %}
<div class="np-dashboard-resources-title">
{% t shared.learning_paths %}
</div>
{% include "learning_paths_index", items: learning_paths.enrolled %}
{% endif %}
<div class="np-dashboard-resources-title">
{% t shared.course_vocabulary.plural, key: current_school.course_vocabulary %}
</div>
{% include "courses_index", class: "col-xs-12 col-sm-6 np-stretch-content" %}
</div>
{% if features.training_events? %}
<div class="np-grid-spacing col-xs-12 col-sm-4">
<div class="np-dashboard-resources-title">
{% t .upcoming_events %}
</div>
{% include "training_events_dashboard" %}
</div>
{% endif %}
</div>
</main>
{% include "footer" %}
current_page: "/app/user-guides"