Skip to content

Commit 9c87f0f

Browse files
committed
Merge remote-tracking branch 'fixes/fix_gdrive_md5'
2 parents e21f943 + 8ad9f4e commit 9c87f0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cps/gdrive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def on_received_watch_confirmation():
140140
if response:
141141
dbpath = os.path.join(config.config_calibre_dir, "metadata.db").encode()
142142
if not response['deleted'] and response['file']['title'] == 'metadata.db' \
143-
and response['file']['md5Checksum'] != hashlib.md5(dbpath): # nosec
143+
and response['file']['md5Checksum'] != hashlib.md5(dbpath).hexdigest(): # nosec
144144
tmp_dir = get_temp_dir()
145145

146146
log.info('Database file updated')

0 commit comments

Comments
 (0)