Small script changes.
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
<div class="np-card-ribbon">
|
||||
{{ course.ribbon }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<img
|
||||
class="np-card-image"
|
||||
alt="{{ course.name }}"
|
||||
@ -23,6 +23,7 @@
|
||||
</div>
|
||||
{% capture course_path %}{% route course, id: course.id %}{% endcapture %}
|
||||
{% if course.has_to_restart? %}
|
||||
{% endif %}
|
||||
{% include "course_version_outdated_popup", path: course_path %}
|
||||
{% endif %}
|
||||
<a class="np-button np-button-wide" href="{{ course_path }}">
|
||||
|
||||
@ -13,6 +13,7 @@ headers = {
|
||||
"x-api-key": api_key,
|
||||
"content-type": "application/json",
|
||||
}
|
||||
yoyo = ""
|
||||
|
||||
|
||||
def load_file(basefile):
|
||||
|
||||
@ -134,11 +134,12 @@ def add_props_from_csv():
|
||||
propresponse = requests.post(prop_url, json=payload, headers=HEADERS)
|
||||
print(propresponse.status_code)
|
||||
if propresponse.status_code != 200:
|
||||
error_tupe = (learner_uud, learner_email, agency_name)
|
||||
error_tupe = (learner_uuid, learner_email, agency_name)
|
||||
errorlist.append(error_tupe)
|
||||
else:
|
||||
print(f"Looks like {learner_email} and {agency_name} was successful.")
|
||||
except TypeError as e:
|
||||
print(e)
|
||||
pass
|
||||
finally:
|
||||
print(f"Error list: {errorlist}")
|
||||
|
||||
@ -6,14 +6,16 @@ const rl =
|
||||
input: process.stdin,
|
||||
output: process.stdout,
|
||||
})
|
||||
var userEmail= 'nrasmussen@northpass.com';
|
||||
var userPassword= 'ecx5pmy!MAN2vgh2knc';
|
||||
var otp = '056467';
|
||||
var userEmail= '@northpass.com';
|
||||
var userPassword= '!MAN2vgh2knc';
|
||||
var otp = '';
|
||||
var schoolUUID = '52d19519-103f-45e3-9fa8-d21baa0f8aaa'
|
||||
var courseUUIDs = [
|
||||
|
||||
]
|
||||
|
||||
fim
|
||||
var varavar = ""
|
||||
var schoolNameToCloneTo = "Anthology Partner U";
|
||||
|
||||
function wait(ms) {
|
||||
|
||||
Reference in New Issue
Block a user