mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 11:55:00 +00:00
fixed insert into typo
This commit is contained in:
@@ -169,7 +169,7 @@ def yolo_results_db():
|
||||
global yolo_results
|
||||
db = get_db()
|
||||
with db.cursor() as cursor:
|
||||
sql_yolo = "INSERT INTO yolo_results (object, confidence) VALUES (%s, %s)"
|
||||
sql_yolo = "INSERT INTO image (object, confidence) VALUES (%s, %s)"
|
||||
yolo_tuples = [(result["class"], result["confidence"]) for result in yolo_results]
|
||||
cursor.executemany(sql_yolo, yolo_tuples)
|
||||
db.commit()
|
||||
|
Reference in New Issue
Block a user