Support verify content.json directly from parsed dict

This commit is contained in:
HelloZeroNet 2016-04-20 23:40:26 +02:00
parent 21cfa653ca
commit 3812aa6502

View file

@ -616,6 +616,9 @@ class ContentManager(object):
if inner_path.endswith("content.json"): # content.json: Check using sign
from Crypt import CryptBitcoin
try:
if type(file) is dict:
new_content = file
else:
new_content = json.load(file)
if inner_path in self.contents:
old_content = self.contents.get(inner_path)