From 6cc4adb9019d399aa50be73434b55c2b5afbe688 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Sat, 11 Jul 2020 21:38:07 +0000 Subject: [PATCH] Remove stray TODO The DB creation operates with a DB lock, so that code can't run while another process is filling the DB; it would block on obtaining the lock a few lines prior instead. --- qwarc/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/qwarc/__init__.py b/qwarc/__init__.py index 5a3ced6..8f9acae 100644 --- a/qwarc/__init__.py +++ b/qwarc/__init__.py @@ -377,8 +377,6 @@ class QWARC: continue else: # Really nothing to do anymore - #TODO: Another process may be running create_db, in which case we'd still want to wait... - # create_db could insert a dummy item which is marked as done when the DB is ready cursor.execute('COMMIT') break id, itemType, itemValue, status = result