Small fixes
This commit is contained in:
@@ -151,7 +151,7 @@ class BookSorter:
|
||||
# is already in the database and it remains at its original path
|
||||
if self.mode == 'addition' and file_md5 in self.hashes_and_paths:
|
||||
if (self.hashes_and_paths[file_md5] == filename
|
||||
and os.path.exists(self.hashes_and_paths[file_md5])):
|
||||
or os.path.exists(self.hashes_and_paths[file_md5])):
|
||||
|
||||
if not self.hashes_and_paths[file_md5] == filename:
|
||||
print(f'{os.path.basename(filename)} is already in database')
|
||||
|
Reference in New Issue
Block a user