diff options
-rw-r--r-- | README.md | 1 | ||||
-rwxr-xr-x | src/wsgi.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -59,6 +59,7 @@ Start CouchDB and the collector. Make sure to give it a username and password: export COUCHDB_USER=couchdb export COUCHDB_PASSWORD=insecure export COUCHDB_NAME=test + export COUCHDB_HOSTNAME=couchdb docker-compose up Now the database and the API server should be running, now we can try diff --git a/src/wsgi.py b/src/wsgi.py index 97965e1..62db3c9 100755 --- a/src/wsgi.py +++ b/src/wsgi.py @@ -75,7 +75,7 @@ class EPGet(CollectorResource): selectors['domain'] = org data = self._db.search(**selectors) if data: - out.append(data) + out += data resp.text = json.dumps({'status': 'success', 'data': out}) |