Fixed bug where hash was calculated using the wrong variable (#235)

This commit is contained in:
ripose-jp 2021-02-26 21:16:39 -08:00 committed by GitHub
parent 421ca35c09
commit aaf6b3a55b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -502,7 +502,7 @@ class AnkiConnect:
skip = False skip = False
else: else:
m = hashlib.md5() m = hashlib.md5()
m.update(data) m.update(mediaData)
skip = skipHash == m.hexdigest() skip = skipHash == m.hexdigest()
if skip: if skip: