master
Kevin Froman 2018-04-22 21:10:09 -05:00
parent 7199b0e5da
commit d41f86a27a
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 3 additions and 1 deletions

View File

@ -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)