Untitled
unknown
plain_text
3 years ago
523 B
4
Indexable
@app.route('/post-update', methods=['POST']) def postup(): # dagsetning now = datetime.now() datestr = now isdate = datestr.strftime('%d/%m, %Y. Kl. %H:%M) if request.method == 'POST': db.child('pistlar').child( request.form['id'] ).update({ 'Fyrirsögn':request.form['Fyrirsögn'], 'Pistill':request.form['Pistill'], 'Höfundur':request.form['Höfundur'], 'Dagsetning':isdate }) return redirect('/secure') else: return render_template('error405.html')
Editor is loading...