This commit is contained in:
2021-06-05 16:23:12 +02:00
parent c45d880b8e
commit 42f8ac8a53
2 changed files with 6 additions and 1 deletions

5
app.py
View File

@@ -34,6 +34,11 @@ app = Flask(__name__)
app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1, x_host=1)
app.secret_key = 'eng5iikeiwah3lae4idoo0woh4eiy6Th'
@app.context_processor
def get_date():
date = datetime.now()
return { "now": date.strftime("%Y-%m-%d") }
@app.route('/', methods = ['GET', 'POST'])
def index():
if request.method == 'POST':