Update app.py
Browse files
app.py
CHANGED
@@ -408,17 +408,6 @@ def generate_question_text(context,subject,total):
|
|
408 |
output = output + "<b style='color:green;'> ▪ " +answer.capitalize()+ "</b>"
|
409 |
output = output + "<br>"
|
410 |
|
411 |
-
# mycursor = mydb.cursor()
|
412 |
-
# timedate = datetime.datetime.now()
|
413 |
-
|
414 |
-
# sql = "INSERT INTO mcqstexts (subject, input, output, timedate) VALUES (%s,%s, %s,%s)"
|
415 |
-
# val = (subject, context, output, timedate)
|
416 |
-
# mycursor.execute(sql, val)
|
417 |
-
|
418 |
-
# mydb.commit()
|
419 |
-
|
420 |
-
# print(mycursor.rowcount, "record inserted.")
|
421 |
-
|
422 |
return output
|
423 |
|
424 |
|
|
|
408 |
output = output + "<b style='color:green;'> ▪ " +answer.capitalize()+ "</b>"
|
409 |
output = output + "<br>"
|
410 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
return output
|
412 |
|
413 |
|