We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e21f943 + 8ad9f4e commit 9c87f0fCopy full SHA for 9c87f0f
1 file changed
cps/gdrive.py
@@ -140,7 +140,7 @@ def on_received_watch_confirmation():
140
if response:
141
dbpath = os.path.join(config.config_calibre_dir, "metadata.db").encode()
142
if not response['deleted'] and response['file']['title'] == 'metadata.db' \
143
- and response['file']['md5Checksum'] != hashlib.md5(dbpath): # nosec
+ and response['file']['md5Checksum'] != hashlib.md5(dbpath).hexdigest(): # nosec
144
tmp_dir = get_temp_dir()
145
146
log.info('Database file updated')
0 commit comments