From 4a7487f9fda96b0d5e375dd8f4cd4d9bb30a4763 Mon Sep 17 00:00:00 2001 From: Peter Silva Date: Fri, 6 Dec 2024 23:53:53 -0500 Subject: [PATCH] fix partitions, broken because naturalsize output has no spaces anymore --- sarracenia/flow/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sarracenia/flow/__init__.py b/sarracenia/flow/__init__.py index 12187ce3e..8d80d34e6 100644 --- a/sarracenia/flow/__init__.py +++ b/sarracenia/flow/__init__.py @@ -2008,8 +2008,7 @@ def download(self, msg, options) -> int: if msg['blocks']['method'] in [ 'inplace' ]: # download only a specific block from a file, not the whole thing. logger.debug( f"splitting 1 file into {len(msg['blocks']['manifest'])} block messages." ) blkno = msg['blocks']['number'] - blksz_l = sarracenia.naturalSize(msg['blocks']['size']).split() - blksz = blksz_l[0]+blksz_l[1][0].lower() + blksz = sarracenia.naturalSize(msg['blocks']['size']).lower() if not '§block_' in new_file: new_file += f"§block_{blkno:04d},{blksz}_§" msg['new_file'] = new_file