From c703458e00908208a2c3b1f877236bd7ee78d30f Mon Sep 17 00:00:00 2001 From: shortcutme Date: Wed, 4 Apr 2018 10:24:38 +0200 Subject: [PATCH] Rev3403, Fix uploading small files with bigfile plugin --- plugins/Bigfile/BigfilePlugin.py | 2 +- src/Config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Bigfile/BigfilePlugin.py b/plugins/Bigfile/BigfilePlugin.py index 4b808cf3..1fa49acf 100644 --- a/plugins/Bigfile/BigfilePlugin.py +++ b/plugins/Bigfile/BigfilePlugin.py @@ -61,7 +61,7 @@ class UiRequestPlugin(object): if len(piecemap_info["sha512_pieces"]) == 1: # Small file, don't split hash = piecemap_info["sha512_pieces"][0].encode("hex") - hash_id = self.site.content_manager.hashfield.getHashId(hash) + hash_id = site.content_manager.hashfield.getHashId(hash) site.content_manager.optionalDownloaded(inner_path, hash_id, upload_info["size"], own=True) else: # Big file diff --git a/src/Config.py b/src/Config.py index deb46c50..929f8174 100644 --- a/src/Config.py +++ b/src/Config.py @@ -10,7 +10,7 @@ class Config(object): def __init__(self, argv): self.version = "0.6.2" - self.rev = 3402 + self.rev = 3403 self.argv = argv self.action = None self.config_file = "zeronet.conf"