Fix for 'Add New' collision.

This commit is contained in:
Jim Miller
2011-12-24 09:40:23 -06:00
parent 3aaf9ec91d
commit 6e52a5b096
+1 -1
View File
@@ -359,7 +359,7 @@ class FanFictionDownLoaderPlugin(InterfaceAction):
identicalbooks = self.db.find_identical_books(mi)
print(identicalbooks)
addedcount=0
if identicalbooks:
if identicalbooks and collision != ADDNEW:
## more than one match? add to first off the list.
## Shouldn't happen--we checked above.
book_id = identicalbooks.pop()