forgot to commit to db 😭
This commit is contained in:
parent
fb720e98ec
commit
05ecd5f86c
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ def home():
|
|||
print("Ask: " + ask)
|
||||
db.execute(text("INSERT INTO asks (name, ask) VALUES (:name, :ask)"),
|
||||
{"name": name, "ask": ask})
|
||||
db.commit()
|
||||
print("Wrote to DB maybe")
|
||||
return redirect('/')
|
||||
return render_template('index.j2', instanceLocation=instanceLocation, instanceBranding=instanceBranding)
|
||||
|
|
Loading…
Add table
Reference in a new issue