diff --git a/__pycache__/app.cpython-37.pyc b/__pycache__/app.cpython-37.pyc index c6bd8e3..2dd5627 100644 Binary files a/__pycache__/app.cpython-37.pyc and b/__pycache__/app.cpython-37.pyc differ diff --git a/app.py b/app.py index 51581a9..9eddf47 100644 --- a/app.py +++ b/app.py @@ -18,7 +18,7 @@ def differentiation(): if request.method == "POST": # Check if inputs were given if not request.form.get("function"): - return apology("must provide a function", 400) + return gif_apology("must provide a function", 400) f = request.form.get("function") # Setup our symbols for SymPy @@ -229,6 +229,10 @@ def setup_symbols(f): f = f.subs(letter, x) return f +def gif_apology(message="oopsy", code=400): + "Render gif failure" + PATH = 'static/img/gifs/reaction' + str(2) + '.gif' + return render_template("gif_apology.html", PATH=PATH) if __name__ == '__main__': diff --git a/static/img/gifs/reaction1.gif b/static/img/gifs/reaction1.gif new file mode 100644 index 0000000..41b0c2b Binary files /dev/null and b/static/img/gifs/reaction1.gif differ diff --git a/static/img/gifs/reaction2.gif b/static/img/gifs/reaction2.gif new file mode 100644 index 0000000..01d335a Binary files /dev/null and b/static/img/gifs/reaction2.gif differ diff --git a/static/img/gifs/reaction3.gif b/static/img/gifs/reaction3.gif new file mode 100644 index 0000000..ca2703a Binary files /dev/null and b/static/img/gifs/reaction3.gif differ diff --git a/static/img/gifs/reaction4.gif b/static/img/gifs/reaction4.gif new file mode 100644 index 0000000..5e52c42 Binary files /dev/null and b/static/img/gifs/reaction4.gif differ diff --git a/static/img/gifs/reaction5.gif b/static/img/gifs/reaction5.gif new file mode 100644 index 0000000..8c968ba Binary files /dev/null and b/static/img/gifs/reaction5.gif differ diff --git a/templates/gif_apology.html b/templates/gif_apology.html new file mode 100644 index 0000000..cb11200 --- /dev/null +++ b/templates/gif_apology.html @@ -0,0 +1,9 @@ +{% extends "layout.html" %} + +{% block title %} + Apology +{% endblock %} + +{% block main %} + shit +{% endblock %}