diff --git a/cronjob.txt b/cronjob.txt new file mode 100644 index 0000000..4b1eb9d --- /dev/null +++ b/cronjob.txt @@ -0,0 +1 @@ +0 * * * * curl http://INSTANCE_URL/cron/ \ No newline at end of file diff --git a/main.py b/main.py index 669826a..f6022cd 100644 --- a/main.py +++ b/main.py @@ -63,9 +63,6 @@ def update_data(): .replace("https://www.instructables.com", "{instance_root_url}") ) - channel = "TEST" - channel_link = "TEST" - for c in channels: try: channel = ible.query_selector("a[href^='/" + c + "']").inner_text() @@ -1018,10 +1015,13 @@ def route_proxy(): else: return Response(render_template("400.html"), status=400) +@app.route("/privacypolicy/") +def privacypolicy(): + return render_template("privacypolicy.html") + @app.errorhandler(404) def not_found(e): return render_template("404.html") - -if __name__ == "__main__": +if __name__ == '__main__': app.run(port=args.port, host=args.listen_host, debug=debugmode) diff --git a/static/img/magnifying-glass-solid.svg b/static/img/magnifying-glass-solid.svg new file mode 100644 index 0000000..d725d67 --- /dev/null +++ b/static/img/magnifying-glass-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/footer.html b/templates/footer.html index b720d5f..debc6e9 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -2,7 +2,7 @@

Modified Source Code (AGPLv3)

-

Original Source Code (AGPLv3)

-

View privacy policy.

+

Original Source Code (AGPLv3)

+

View privacy policy.

\ No newline at end of file diff --git a/templates/privacypolicy.html b/templates/privacypolicy.html new file mode 100644 index 0000000..67eef22 --- /dev/null +++ b/templates/privacypolicy.html @@ -0,0 +1,23 @@ + + + + + Privacy Policy - Indestructables + + + {% include "style.html" %} + + + + + {% include "header.html" %} +
+
+

Privacy Policy

+
+

{% include "privacypolicy.txt" %}

+
+ {% include "footer.html" %} + + + \ No newline at end of file diff --git a/templates/privacypolicy.txt b/templates/privacypolicy.txt new file mode 100644 index 0000000..7905154 --- /dev/null +++ b/templates/privacypolicy.txt @@ -0,0 +1 @@ +Nothing here, yet! \ No newline at end of file