Fixing instance fetcher inserting duplicate rows
This commit is contained in:
@ -55,6 +55,9 @@ for instance in peerlist:
|
||||
instance = instance.lower()
|
||||
print(instance)
|
||||
try:
|
||||
c.execute(
|
||||
"select domain from instances where domain = ?", (instance,)
|
||||
)
|
||||
if c.fetchone() == None:
|
||||
c.execute(
|
||||
"insert into instances select ?, ?, ?",
|
||||
|
Reference in New Issue
Block a user