Fixed sha1 checksum not seeking the file init
This commit is contained in:
parent
257c6a539c
commit
1982223267
|
@ -10,6 +10,7 @@ def sha1_checksum(handler):
|
|||
temp_name = '/tmp/_{}'.format(uuid.uuid4())
|
||||
f = open(temp_name, 'wb+')
|
||||
f.write(handler.read())
|
||||
f.seek(0)
|
||||
else:
|
||||
f = open(handler.name, 'rb')
|
||||
|
||||
|
|
Loading…
Reference in New Issue