From: Mint <> Date: Sun, 7 Aug 2022 06:24:20 +0000 (+0300) Subject: Fixing instance fetcher inserting duplicate rows X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4d9b9f39ab2edebcdd19f807b0cbecbf11a61843;p=fba.git Fixing instance fetcher inserting duplicate rows --- diff --git a/fetch_instances.py b/fetch_instances.py index c59d7fa..1433398 100644 --- a/fetch_instances.py +++ b/fetch_instances.py @@ -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 ?, ?, ?",