Lot's of skuid scripts for accredible and question mark. Some template changes for Mizuno & G2.
This commit is contained in:
34
CZ-dupe-ids.csv
Normal file
34
CZ-dupe-ids.csv
Normal file
@ -0,0 +1,34 @@
|
||||
Name,Id,ExternalId
|
||||
Amdocs - APAC,20589,65763
|
||||
Luxoft,27527,276171
|
||||
Banco de Reservas,308019,281880
|
||||
Ernst & Young - APAC - India Practice,40938,174951
|
||||
Adevinta,26492,121499
|
||||
Infostretch,9006,227887
|
||||
PepsiCo,21909,250252
|
||||
Salt River Project,14158,265506
|
||||
Salt River Project- Sub-,1,326935
|
||||
Eargo Inc,2384,111677
|
||||
NumericTech,79,189463
|
||||
Catalyte,11290,274699
|
||||
Anheuser-Busch InBev (AB INBev) - APAC,18243,247523
|
||||
GE HEALTHCARE, India,28519,281925
|
||||
Geneva Trading,14413,250261
|
||||
CNSI,31330,217295
|
||||
RS21,8100,280328
|
||||
Peloton Interactive, Inc.,1301,47528
|
||||
Scoot Tigerair Pte Ltd,21151,263425
|
||||
Nubank Brasil,1553,73907
|
||||
Hewlett Packard Enterprise,1660,278151
|
||||
Toshiba Software India Pvt. Ltd.,39918,245342
|
||||
Stellantis,301334,274976
|
||||
Oracle,1914,146325
|
||||
Salesforce, Inc.,680,26581
|
||||
HT Digital,34188,23763
|
||||
Singapore Telecommunications Ltd. (Singtel),6178,247115
|
||||
Qualcomm,5547,79801
|
||||
Boston Consulting Group - GAMMA,791,82341
|
||||
Boston Consulting Group - Platinion,5158,209228
|
||||
Capgemini Technology Services India Limited,37744,62787
|
||||
HackerRank,1632,25227
|
||||
Equinix - APAC,39561,191973
|
||||
|
Can't render this file because it has a wrong number of fields in line 15.
|
@ -116,10 +116,6 @@
|
||||
max-width: 760px;
|
||||
}
|
||||
}
|
||||
a {
|
||||
text-deocration:none;
|
||||
color:white;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
@ -4,83 +4,10 @@
|
||||
<main class="np-main np-dashboard np-subpage-container np-max-width">
|
||||
<div class="np-dashboard-header">
|
||||
<div class="np-resource-title">Hi {{current_person.first_name}}!</div>
|
||||
<div class="np-resource-subtitle">Welcome to Mizuno Golf Academy</div>
|
||||
<div class="np-resource-subtitle">Welcome to Mizuno Running Academy</div>
|
||||
</div>
|
||||
<div class="row np-flex-center">
|
||||
{% if features.learning_paths? %}
|
||||
<div class="col-xs-12 col-md-8">
|
||||
<div class="np-dashboard-resources-title">
|
||||
{% t shared.learning_paths %}
|
||||
</div>
|
||||
{% include "learning_paths_index", items: learning_paths.enrolled %}
|
||||
</div>
|
||||
<div class="np-grid-spacing col-xs-12 col-md-4">
|
||||
<div class="np-dashboard-resources-title">Course Progress</div>
|
||||
{% include "widget_course_progress" %}
|
||||
|
||||
{%- comment -%} <div class="np-dashboard-resources-title">Recent Achievements</div>
|
||||
{% include "widget_achievements" %} {%- endcomment -%}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="course-progress-wrapper col-xs-12 col-md-6 offset-lg-1">
|
||||
<div class="np-dashboard-resources-title">Course Progress</div>
|
||||
{% include "widget_course_progress" %}
|
||||
</div>
|
||||
{%- comment -%} <div class="achievements-wrapper col-xs-12 col-md-6">
|
||||
<div class="np-dashboard-resources-title">Recent Achievements</div>
|
||||
{% include "widget_achievements" %}
|
||||
</div> {%- endcomment -%}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="np-dashboard-resources-title" style="margin-bottom:19px;">
|
||||
Courses
|
||||
</div>
|
||||
<div class="row dashboard-section-courses col-xs-12">
|
||||
{% if courses.enrolled.any? %}
|
||||
{% for course in courses.enrolled %}
|
||||
{% assign course_status = "" %}
|
||||
|
||||
{% if course.started? == false %}
|
||||
{% assign course_status = "not-started" %}
|
||||
{% elsif course.completed? %}
|
||||
{% assign course_status = "completed" %}
|
||||
{% elsif course.started? %}
|
||||
{% assign course_status = "in-progress" %}
|
||||
{% endif %}
|
||||
|
||||
<div class="np-carousel-card col-xs-12 col-md-4 {{course_status}}"> {% include "cards_course" with course %}</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% capture message %}
|
||||
{% t shared.zero_state.courses.index,
|
||||
key: current_school.course_vocabulary
|
||||
%}
|
||||
{% endcapture %}
|
||||
<div style="margin-bottom:3rem;">
|
||||
{% include "courses_zero_state", message: message %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
.
|
||||
|
||||
{% comment %} <div class="row dashboard-section-events">
|
||||
<div class="col-xs-12">
|
||||
<div class="np-dashboard-resources-title">
|
||||
{% t .upcoming_events %}
|
||||
</div>
|
||||
{% if training_events.enrolled.any? %}
|
||||
{%
|
||||
include "carousel_events",
|
||||
items: training_events.enrolled,
|
||||
%}
|
||||
{% else %}
|
||||
<div style="margin-bottom:3rem;">
|
||||
{% include "training_events_zero_state" %}
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
</div> {% endcomment %}
|
||||
</main>
|
||||
{% include "footer" %}
|
||||
<script>
|
||||
window.location.href = '/app'
|
||||
</script>
|
||||
|
||||
@ -14,12 +14,12 @@ def create_cred():
|
||||
"email": "norm+accredtest2@northpass.com",
|
||||
# "id": "TEST21234",
|
||||
},
|
||||
"name": "Skuid Test Credential",
|
||||
# "name": "Skuid Test Credential",
|
||||
"group_id": 461982,
|
||||
"issued_on": "07/08/2023",
|
||||
"expired_on": "07/08/2024",
|
||||
# "issued_on": "07/08/2023",
|
||||
# "expired_on": "07/08/2024",
|
||||
"complete": True,
|
||||
"private": True,
|
||||
"private": False,
|
||||
},
|
||||
}
|
||||
try:
|
||||
|
||||
80
Scripts/API_Tests/qm-log.txt
Normal file
80
Scripts/API_Tests/qm-log.txt
Normal file
@ -0,0 +1,80 @@
|
||||
No Data - 11:45:09
|
||||
No Data - 11:45:14
|
||||
No Data - 11:45:19
|
||||
No Data - 11:45:24
|
||||
No Data - 11:45:29
|
||||
No Data - 11:45:34
|
||||
No Data - 11:45:39
|
||||
No Data - 11:45:44
|
||||
No Data - 11:45:49
|
||||
No Data - 11:45:54
|
||||
No Data - 11:45:59
|
||||
No Data - 11:46:04
|
||||
No Data - 11:46:09
|
||||
No Data - 11:46:14
|
||||
No Data - 11:46:19
|
||||
No Data - 11:46:24
|
||||
No Data - 11:46:29
|
||||
No Data - 11:46:34
|
||||
No Data - 11:46:39
|
||||
No Data - 11:46:44
|
||||
No Data - 11:46:49
|
||||
No Data - 11:46:54
|
||||
No Data - 11:46:59
|
||||
No Data - 11:47:04
|
||||
No Data - 11:47:09
|
||||
No Data - 11:47:14
|
||||
No Data - 11:47:19
|
||||
No Data - 11:47:24
|
||||
No Data - 11:47:29
|
||||
No Data - 11:47:34
|
||||
No Data - 11:47:39
|
||||
No Data - 11:47:44
|
||||
No Data - 11:47:49
|
||||
No Data - 11:47:54
|
||||
No Data - 11:47:59
|
||||
No Data - 11:48:04
|
||||
No Data - 11:48:09
|
||||
No Data - 11:48:14
|
||||
No Data - 11:48:19
|
||||
No Data - 11:48:24
|
||||
No Data - 11:48:29
|
||||
No Data - 11:48:34
|
||||
No Data - 11:48:39
|
||||
No Data - 11:48:44
|
||||
No Data - 11:48:49
|
||||
No Data - 11:48:54
|
||||
No Data - 11:48:59
|
||||
No Data - 11:49:04
|
||||
No Data - 11:49:09
|
||||
No Data - 11:49:14
|
||||
No Data - 11:49:19
|
||||
No Data - 11:49:24
|
||||
No Data - 11:49:29
|
||||
No Data - 11:49:34
|
||||
No Data - 11:49:39
|
||||
No Data - 11:49:44
|
||||
No Data - 11:49:49
|
||||
No Data - 11:49:54
|
||||
No Data - 11:49:59
|
||||
No Data - 11:50:04
|
||||
No Data - 11:50:09
|
||||
No Data - 11:50:14
|
||||
No Data - 11:50:19
|
||||
No Data - 11:50:24
|
||||
No Data - 11:50:29
|
||||
No Data - 11:50:34
|
||||
No Data - 11:50:39
|
||||
No Data - 11:50:44
|
||||
No Data - 11:50:49
|
||||
No Data - 11:50:54
|
||||
No Data - 11:50:59
|
||||
No Data - 11:51:04
|
||||
No Data - 11:51:09
|
||||
No Data - 11:51:14
|
||||
No Data - 11:51:19
|
||||
No Data - 11:51:24
|
||||
['norm@northpass.com', '352630000352630', 0, None, None] - 11:51:29
|
||||
['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
|
||||
@ -1,10 +1,14 @@
|
||||
import threading
|
||||
import requests
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
def get_results():
|
||||
threading.Timer(5.0, get_results).start()
|
||||
url = "https://ondemand.questionmark.com/deliveryodata/406287/Results"
|
||||
params = "?$filter=ParticipantName eq tom.leggett%40questionmark.com"
|
||||
params = "?$filter=ParticipantName eq 'norm@northpass.com'"
|
||||
# params = "?$filter=ParticipantName eq 'tom.leggett@questionmark.com'"
|
||||
# params = "?$filter=AssessmentID eq 352630000352630L"
|
||||
# Alexa Test 1 AssesmentID = 0346128000346128
|
||||
url_params = f"{url}{params}"
|
||||
|
||||
headers = {
|
||||
@ -15,8 +19,31 @@ def get_results():
|
||||
|
||||
# response = requests.get(url, headers=headers)
|
||||
response = requests.get(url_params, headers=headers)
|
||||
print(response)
|
||||
print(response.text)
|
||||
data = response.json()
|
||||
data = data["value"]
|
||||
|
||||
now = datetime.now()
|
||||
current_time = now.strftime("%H:%M:%S")
|
||||
|
||||
if data == []:
|
||||
logfile = open("qm-log.txt", "a") # append mode
|
||||
logfile.write(f"No Data - {current_time} \n")
|
||||
logfile.close()
|
||||
else:
|
||||
datalist = []
|
||||
for item in data:
|
||||
email = item["ParticipantName"]
|
||||
passval = item["ScoreBandTitle"]
|
||||
score = item["PercentageScore"]
|
||||
assesmentid = item["AssessmentID"]
|
||||
finished = item["WhenFinished"]
|
||||
|
||||
datalist = [email, assesmentid, score, passval, finished]
|
||||
print(datalist)
|
||||
logfile = open("qm-log.txt", "a") # append mode
|
||||
logfile.write(str(datalist))
|
||||
logfile.write(f" - {current_time} \n")
|
||||
logfile.close()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user