From 39daeb344c3d2d885817041a97d2827ff8aa61fb Mon Sep 17 00:00:00 2001 From: Kristofer Hallin Date: Mon, 21 Feb 2022 12:14:03 +0100 Subject: Create indexes properly. --- src/index.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/index.py') 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 -- cgit v1.1