Fixed sha1 checksum not seeking the file init

This commit is contained in:
Felipe Martín 2016-04-27 20:10:38 +02:00
parent 257c6a539c
commit 1982223267
1 changed files with 1 additions and 0 deletions

View File

@ -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')