I have the following setup in flask:
@app.route('/restart/<int:id>')
def feed_info(id):
con = sqlite3.connect(database)
con.row_factory = sqlite3.Row
cur = con.cursor()
main_q = "UPDATE feed SET update_flag = 1 WHERE id = {};".format(id)
print(main_q)
cur.execute(main_q)
return "Set to update!"
However, even though the SQL seems to work on its own, it doesnt actually make the update when I call the method in Flask.
Any ideas?