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")