mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-10 08:09:05 -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>/")
|
||||
def panzer(string="bionicles are cooler than sex"):
|
||||
string = string.replace("+", " ")
|
||||
string = string.replace("\n", "%0A")
|
||||
string = string.replace("+", " ").replace("\n", "%0A")
|
||||
image = create_panzer(string)
|
||||
return serve_pil_image(image)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user