mirror of
https://github.com/janeczku/calibre-web
synced 2025-11-10 20:23:04 +00:00
python3 compatibility
This commit is contained in:
@@ -24,7 +24,7 @@ def init_cache_busting(app):
|
|||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
# compute version component
|
# compute version component
|
||||||
rooted_filename = os.path.join(dirpath, filename)
|
rooted_filename = os.path.join(dirpath, filename)
|
||||||
with open(rooted_filename, 'r') as f:
|
with open(rooted_filename, 'rb') as f:
|
||||||
file_hash = hashlib.md5(f.read()).hexdigest()[:7]
|
file_hash = hashlib.md5(f.read()).hexdigest()[:7]
|
||||||
|
|
||||||
# save version to tables
|
# save version to tables
|
||||||
|
|||||||
Reference in New Issue
Block a user