diff options
Diffstat (limited to 'src/index.py')
-rw-r--r-- | src/index.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/index.py b/src/index.py index 3541ec7..688ceeb 100644 --- a/src/index.py +++ b/src/index.py @@ -51,3 +51,11 @@ class CouchIindex(BaseSettings): "name": "asn-country-code-json-index", "type": "json" } + + +def as_list(): + index_list = list() + for item in CouchIindex().dict(): + index_list.append(CouchIindex().dict()[item]) + + return index_list |