hippius 0.1.13__tar.gz → 0.1.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hippius-0.1.13 → hippius-0.1.14}/PKG-INFO +1 -1
- {hippius-0.1.13 → hippius-0.1.14}/hippius_sdk/__init__.py +1 -1
- {hippius-0.1.13 → hippius-0.1.14}/hippius_sdk/cli.py +2 -2
- {hippius-0.1.13 → hippius-0.1.14}/hippius_sdk/substrate.py +2 -1
- {hippius-0.1.13 → hippius-0.1.14}/pyproject.toml +1 -1
- {hippius-0.1.13 → hippius-0.1.14}/README.md +0 -0
- {hippius-0.1.13 → hippius-0.1.14}/hippius_sdk/client.py +0 -0
- {hippius-0.1.13 → hippius-0.1.14}/hippius_sdk/config.py +0 -0
- {hippius-0.1.13 → hippius-0.1.14}/hippius_sdk/ipfs.py +0 -0
@@ -522,10 +522,10 @@ def handle_files(client, account_address, show_all_miners=False):
|
|
522
522
|
if "size_formatted" in file and file["size_formatted"] is not None:
|
523
523
|
size_formatted = file["size_formatted"]
|
524
524
|
file_size = file.get("file_size", 0)
|
525
|
-
if file_size is not None:
|
525
|
+
if file_size is not None and file_size > 0:
|
526
526
|
print(f" File size: {file_size:,} bytes ({size_formatted})")
|
527
527
|
else:
|
528
|
-
print(f" File size:
|
528
|
+
print(f" File size: {size_formatted}")
|
529
529
|
else:
|
530
530
|
print(f" File size: Unknown")
|
531
531
|
|
@@ -761,6 +761,7 @@ class SubstrateClient:
|
|
761
761
|
file.get("size")
|
762
762
|
or file.get("fileSize")
|
763
763
|
or file.get("file_size")
|
764
|
+
or file.get("file_size_in_bytes")
|
764
765
|
or 0
|
765
766
|
)
|
766
767
|
|
@@ -772,7 +773,7 @@ class SubstrateClient:
|
|
772
773
|
"miner_ids", []
|
773
774
|
), # Try to get miners if available
|
774
775
|
"miner_count": len(file.get("miner_ids", [])), # Count the miners
|
775
|
-
"file_size": file_size,
|
776
|
+
"file_size": file_size or 0,
|
776
777
|
}
|
777
778
|
|
778
779
|
# Add formatted file size if available
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|