7325: Use utility function to get full media path
This commit is contained in:
parent
643e742556
commit
9c637e57c7
@ -1813,10 +1813,7 @@ class CheckIntegrity(object):
|
|||||||
self.progress.step()
|
self.progress.step()
|
||||||
ObjectId = handle2internal(bObjectId)
|
ObjectId = handle2internal(bObjectId)
|
||||||
obj = self.db.get_object_from_handle(ObjectId)
|
obj = self.db.get_object_from_handle(ObjectId)
|
||||||
if os.path.isabs(obj.path):
|
full_path = media_path_full(self.db, obj.get_path())
|
||||||
full_path = obj.path
|
|
||||||
else:
|
|
||||||
full_path = os.path.join(self.db.get_mediapath(), obj.path)
|
|
||||||
new_checksum = create_checksum(full_path)
|
new_checksum = create_checksum(full_path)
|
||||||
if new_checksum != obj.checksum:
|
if new_checksum != obj.checksum:
|
||||||
logging.info('checksum: updating ' + obj.gramps_id)
|
logging.info('checksum: updating ' + obj.gramps_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user