Skip to content
Snippets Groups Projects
Commit a94e134d authored by Giorgos Verigakis's avatar Giorgos Verigakis
Browse files

Bugfix, truncate to size

parent eb8e3364
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,10 @@ def print_data(backend, url): ...@@ -65,7 +65,10 @@ def print_data(backend, url):
object) object)
for hash in hashmap: for hash in hashmap:
block = backend.get_block(hash) block = backend.get_block(hash)
if len(block) > size:
block = block[:size]
stdout.write(block) stdout.write(block)
size -= len(block)
def main(): def main():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment