summaryrefslogtreecommitdiff
path: root/src/index.py
diff options
context:
space:
mode:
authorKristofer Hallin <kristofer@sunet.se>2022-02-21 12:14:03 +0100
committerKristofer Hallin <kristofer@sunet.se>2022-02-21 12:14:03 +0100
commit39daeb344c3d2d885817041a97d2827ff8aa61fb (patch)
tree9ffe0438f9836b2ea91ee2c227b14990c41ebf64 /src/index.py
parentef48cdd5b106c194c700503a51534179e1ca84ef (diff)
Create indexes properly.
Diffstat (limited to 'src/index.py')
-rw-r--r--src/index.py8
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