Small fixes

This commit is contained in:
BasioMeusPuga
2018-03-19 18:26:43 +05:30
parent 7bdf01a67e
commit b5acce6449
4 changed files with 10 additions and 4 deletions

View File

@@ -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')