mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-08 00:20:37 +00:00
parameters, not string concats
This commit is contained in:
parent
083dbd1533
commit
43dca276f4
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ for line in open(logfile):
|
|||
if (counts['lc'] % 10000) == 0:
|
||||
conn.commit()
|
||||
|
||||
sql = "INSERT INTO gravity (domain) VALUES ('"+line+"')"
|
||||
c.execute(sql)
|
||||
sql = "INSERT INTO gravity (domain) VALUES (?)"
|
||||
c.execute(sql, line)
|
||||
|
||||
conn.commit()
|
||||
|
|
Loading…
Add table
Reference in a new issue