From ae1fbc0c56c8732fb85b555eccd4fddb5d8e5437 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 31 Aug 2022 04:44:28 +0300 Subject: Commit missing files. --- qc_app/templates/insert_error.html | 28 ++++++++++++++++++++++++ qc_app/templates/insert_success.html | 15 +++++++++++++ qc_app/templates/stdout_output.html | 10 +++++++++ tests/test_data/average_inconsistent_columns.tsv | 7 ++++++ 4 files changed, 60 insertions(+) create mode 100644 qc_app/templates/insert_error.html create mode 100644 qc_app/templates/insert_success.html create mode 100644 qc_app/templates/stdout_output.html create mode 100644 tests/test_data/average_inconsistent_columns.tsv diff --git a/qc_app/templates/insert_error.html b/qc_app/templates/insert_error.html new file mode 100644 index 0000000..56dd195 --- /dev/null +++ b/qc_app/templates/insert_error.html @@ -0,0 +1,28 @@ +{%extends "base.html"%} + +{%block title%}Data Insertion Failure{%endblock%} + +{%block contents%} +
+ There was an error inserting data into the database +
+ ++ Please notify the developers of this issue when you encounter it, + providing the information below. +
+ +Data inserted successfully!
+ +The following queries were run:
+ +{{stdout_output(job)}} + +{%endblock%} diff --git a/qc_app/templates/stdout_output.html b/qc_app/templates/stdout_output.html new file mode 100644 index 0000000..f3fcde5 --- /dev/null +++ b/qc_app/templates/stdout_output.html @@ -0,0 +1,10 @@ +{%macro stdout_output(job)%} + +{{line}}
+ {%endfor%} +