summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-02-26 08:34:53 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-02-26 08:34:53 (GMT)
commit68d734fc785e7c2d329e665fbbfd43c12e38b02f (patch)
tree2d30ba44fb177b85ac937cafbce983e825deb41e
parente9fa23ed1106c57e786f65104fa778ceb1821a93 (diff)
downloadpublik-client-scripts-68d734fc785e7c2d329e665fbbfd43c12e38b02f.zip
publik-client-scripts-68d734fc785e7c2d329e665fbbfd43c12e38b02f.tar.gz
publik-client-scripts-68d734fc785e7c2d329e665fbbfd43c12e38b02f.tar.bz2
strasbourg: fix copy/paste errors in indexation scriptv0.8
-rw-r--r--clients/strasbourg/index-formdefs-in-elasticsearch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/strasbourg/index-formdefs-in-elasticsearch.py b/clients/strasbourg/index-formdefs-in-elasticsearch.py
index fda4d38..540ec6c 100644
--- a/clients/strasbourg/index-formdefs-in-elasticsearch.py
+++ b/clients/strasbourg/index-formdefs-in-elasticsearch.py
@@ -5,7 +5,7 @@
from elasticsearch import Elasticsearch
-from quixote import get_publisher()
+from quixote import get_publisher
import wcs
from wcs.formdef import FormDef
@@ -15,7 +15,7 @@ else:
es = Elasticsearch([{'host': '46.18.194.222', 'port': 9200}])
indexed_forms = es.search(index='liferay-20116', doc_type='LiferayDocumentType', q='type:procedure')
-indexed_form_ids = [x['_id'] for x in res['hits']['hits']]
+indexed_form_ids = [x['_id'] for x in indeded_forms['hits']['hits']]
for formdef in FormDef.select():
if formdef.disabled and not formdef.disabled_redirection: