Skip to content

Commit

Permalink
Fix custom NLK exports
Browse files Browse the repository at this point in the history
  • Loading branch information
filak committed Oct 25, 2019
1 parent 241224b commit 95827e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask-app/mtw_utils/mtw_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def getElasticData(data):
for trn in item.get('trn',[]):
### Add later by running: grind-data elastic mesh ...
##resp.append( {'index': {'_id': trn, '_index': 'mesht'}} )
resp.append( {'id': dui, 'db': 'mesh', 'trn': trn, 'eng': item.get('eng',''), 'trx': item.get('trx',''), 'active': item.get('active')} )
resp.append( {'id': dui, 'db': 'mesht', 'trn': trn.replace('.','-'), 'eng': item.get('eng',''), 'trx': item.get('trx',''), 'active': item.get('active')} )

### Add later by running: grind-data elastic mesh ...
##resp.append( {'index': {'_id': dui, '_index': 'mesh'}} )
Expand All @@ -427,7 +427,7 @@ def getElasticData(data):
for trn in item.get('trn',[]):
### Add later by running: grind-data elastic mesh ...
##resp.append( {'index': {'_id': trn, '_index': 'mesht'}} )
resp.append( {'id': dui, 'db': 'mesht', 'trn': trn, 'eng': item.get('eng',''), 'trx': item.get('trx',''), 'active': item.get('active')} )
resp.append( {'id': dui, 'db': 'mesht', 'trn': trn.replace('.','-'), 'eng': item.get('eng',''), 'trx': item.get('trx',''), 'active': item.get('active')} )

if qualifs.get(dui):
qa = []
Expand Down

0 comments on commit 95827e7

Please sign in to comment.