summaryrefslogtreecommitdiff
path: root/herrschwarzify.py
diff options
context:
space:
mode:
authorRoman Gräf <romangraef@loves.dicksinhisan.us>2020-11-29 23:22:01 +0100
committerRoman Gräf <romangraef@loves.dicksinhisan.us>2020-11-29 23:26:11 +0100
commitfc6fecee2c761bff688f75f9c2f156ef1358f96b (patch)
tree78cccf4d85f32ac1eb62341c72f82b31639e73a0 /herrschwarzify.py
parentaa2521a9184b5c614971d3dc5987c9cd463157c6 (diff)
downloadherrschwarzify-fc6fecee2c761bff688f75f9c2f156ef1358f96b.tar.gz
herrschwarzify-fc6fecee2c761bff688f75f9c2f156ef1358f96b.tar.bz2
herrschwarzify-fc6fecee2c761bff688f75f9c2f156ef1358f96b.zip
Beautifulllv1.0
Diffstat (limited to 'herrschwarzify.py')
-rw-r--r--herrschwarzify.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/herrschwarzify.py b/herrschwarzify.py
index 9340a08..d47b5c3 100644
--- a/herrschwarzify.py
+++ b/herrschwarzify.py
@@ -3,7 +3,7 @@ import random
import string
from PIL import Image
-from flask import Flask, render_template, request, url_for, redirect, send_from_directory
+from flask import Flask, render_template, request, url_for, redirect, send_from_directory, send_file
from werkzeug.datastructures import FileStorage
SIGN_LOCATION = 225, 1300
@@ -38,6 +38,11 @@ def image_resource(image):
return send_from_directory('uploads', image)
+@app.route("/herrschwarz")
+def herrschwarz():
+ return send_file('herrschwarz.png')
+
+
@app.route("/upload", methods=["POST"])
def upload():
if 'file' not in request.files or not request.files["file"].filename: