From 802e199bf0e022785a934587be6b53673c036bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20K=C3=A1ntor?= Date: Sat, 8 Jan 2022 08:07:44 +0100 Subject: [PATCH] fix(tools): add integrity checks for the jquery cdn link --- apps/tools/librelingo_tools/generate.py | 4 +++- apps/tools/librelingo_tools/templates/converter.html | 2 +- apps/tools/librelingo_tools/templates/missing_words.html | 2 +- apps/tools/practice.py | 9 +++++++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/apps/tools/librelingo_tools/generate.py b/apps/tools/librelingo_tools/generate.py index f3dd5a73055b..84997e20856a 100644 --- a/apps/tools/librelingo_tools/generate.py +++ b/apps/tools/librelingo_tools/generate.py @@ -51,7 +51,9 @@ def generate_course(sdir, outdir, tdir, course_dir): python = sys.executable cmd = f"{python} {lilipy} --course {course_dir} --html {docs_dir}" print(cmd) - success = os.system(cmd) == 0 # TODO: replace this arbitrary system call with a simple Python call + success = ( + os.system(cmd) == 0 + ) # TODO: replace this arbitrary system call with a simple Python call # {or refactor this file as a shell script. But Python code is preferable) os.chdir(current_dir) with open(os.path.join(docs_dir, "course.json")) as fh: diff --git a/apps/tools/librelingo_tools/templates/converter.html b/apps/tools/librelingo_tools/templates/converter.html index 82974b0c6dc2..70203e2a736e 100644 --- a/apps/tools/librelingo_tools/templates/converter.html +++ b/apps/tools/librelingo_tools/templates/converter.html @@ -26,7 +26,7 @@
- + +