Merge remote-tracking branch 'upstream/main'

Replace Font Awesome Pro icon with free version
This commit is contained in:
Kumi 2023-06-04 08:06:54 +02:00
commit 9807d0fba5
Signed by: kumi
GPG key ID: ECBCC9082395383F
6 changed files with 33 additions and 7 deletions

1
cronjob.txt Normal file
View file

@ -0,0 +1 @@
0 * * * * curl http://INSTANCE_URL/cron/

10
main.py
View file

@ -63,9 +63,6 @@ def update_data():
.replace("https://www.instructables.com", "{instance_root_url}") .replace("https://www.instructables.com", "{instance_root_url}")
) )
channel = "TEST"
channel_link = "TEST"
for c in channels: for c in channels:
try: try:
channel = ible.query_selector("a[href^='/" + c + "']").inner_text() channel = ible.query_selector("a[href^='/" + c + "']").inner_text()
@ -1018,10 +1015,13 @@ def route_proxy():
else: else:
return Response(render_template("400.html"), status=400) return Response(render_template("400.html"), status=400)
@app.route("/privacypolicy/")
def privacypolicy():
return render_template("privacypolicy.html")
@app.errorhandler(404) @app.errorhandler(404)
def not_found(e): def not_found(e):
return render_template("404.html") return render_template("404.html")
if __name__ == '__main__':
if __name__ == "__main__":
app.run(port=args.port, host=args.listen_host, debug=debugmode) app.run(port=args.port, host=args.listen_host, debug=debugmode)

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>

After

Width:  |  Height:  |  Size: 494 B

View file

@ -2,7 +2,7 @@
<hr> <hr>
<center> <center>
<p><a href="https://kumig.it/PrivateCoffee/indestructables">Modified Source Code (AGPLv3)</a></p> <p><a href="https://kumig.it/PrivateCoffee/indestructables">Modified Source Code (AGPLv3)</a></p>
<p><a href="https://codeberg.org/snowcatridge10/indestructables">Original Source Code (AGPLv3)</a></p> <p><a href="https://codeberg.org/indestructables/indestructables">Original Source Code (AGPLv3)</a></p>
<p><a href="">View privacy policy.</a></p> <p><a href="/privacypolicy">View privacy policy.</a></p>
</center> </center>
</footer> </footer>

View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>Privacy Policy - Indestructables</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
{% include "style.html" %}
<link rel="icon" type="image/png" href="{{ url_for('static', filename='img/favicon.png') }}">
</head>
<body>
{% include "header.html" %}
<center>
<br>
<h1 style="font-size:2em;line-height:0em;">Privacy Policy</h1>
<br>
<p>{% include "privacypolicy.txt" %}</p>
</center>
{% include "footer.html" %}
</body>
</html>

View file

@ -0,0 +1 @@
Nothing here, yet!