add get_head_blob_hash() function in DownloadManager

This commit is contained in:
Kay Kurokawa 2017-08-02 12:11:09 -04:00
parent c0a2c6c830
commit 7e95169fbe

View file

@ -98,3 +98,6 @@ class DownloadManager(object):
return self.calculate_total_bytes() return self.calculate_total_bytes()
else: else:
return sum([b.length for b in self.needed_blobs() if b.length is not None]) return sum([b.length for b in self.needed_blobs() if b.length is not None])
def get_head_blob_hash(self):
return self.blobs[0].blob_hash