what
This commit is contained in:
parent
7199b0e5da
commit
d41f86a27a
@ -196,6 +196,8 @@ class API:
|
||||
resp = Response('')
|
||||
# setData should be something the communicator initiates, not this api
|
||||
elif action == 'getData':
|
||||
if self._utils.validateHash(data):
|
||||
if not os.path.exists('data/blocks/' + data + '.db'):
|
||||
resp = base64.b64encode(self._core.getData(data))
|
||||
if resp == False:
|
||||
abort(404)
|
||||
|
Loading…
Reference in New Issue
Block a user