mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-13 00:13:28 -06:00
make string replacement one step in panzer.py
This commit is contained in:
@@ -12,8 +12,7 @@ from app import app
|
|||||||
@app.route("/panzer/<string>")
|
@app.route("/panzer/<string>")
|
||||||
@app.route("/panzer/<string>/")
|
@app.route("/panzer/<string>/")
|
||||||
def panzer(string="bionicles are cooler than sex"):
|
def panzer(string="bionicles are cooler than sex"):
|
||||||
string = string.replace("+", " ")
|
string = string.replace("+", " ").replace("\n", "%0A")
|
||||||
string = string.replace("\n", "%0A")
|
|
||||||
image = create_panzer(string)
|
image = create_panzer(string)
|
||||||
return serve_pil_image(image)
|
return serve_pil_image(image)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user