diff --git a/main.py b/main.py index 30090cd..9dd6a6e 100644 --- a/main.py +++ b/main.py @@ -234,7 +234,7 @@ def saveComponentsData(response, compid, bomformat, components_data): # insert into database sqlstmt = """ INSERT INTO dm_componentdeps(compid, packagename, packageversion, deptype, name, url, summary, purl, pkgtype) - VALUES {} ON CONFLICT ON CONSTRAINT dm_componentdeps_pkey DO NOTHING + VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s) ON CONFLICT ON CONSTRAINT dm_componentdeps_pkey DO NOTHING """ cursor.executemany(sqlstmt, components_data)