INQ-28 upvotes connected with db

This commit is contained in:
DarkPete 2018-12-12 11:40:23 +01:00
parent a7ffdd2c39
commit 10b0a0efd6

1
App.py
View File

@ -40,6 +40,7 @@ def ask():
print(question[1])
db = sqlite3.connect(DATABASE)
db_conn = db.cursor()
db_conn.execute("INSERT INTO question (subject_id, question_text, upvotes) VALUES (?, ?,?);",(1,question[1],0))
db.commit()
return '200'