Skip to content

Commit

Permalink
monitoring: fix ES duplicate display
Browse files Browse the repository at this point in the history
Co-Authored-by: Peter weber <[email protected]>
  • Loading branch information
rerowep committed Jun 28, 2021
1 parent f16946e commit d32a45f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rero_ils/modules/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,9 @@ def missing_pids(doc_type):
data['ES'].append(pid)
for pid in mon.get('ES duplicate'):
if api_url:
url = f'{api_url}?q=pid:{pid}'
data['ES duplicate'][url] = len(mon.get('ES duplicate'))
data['ES duplicate'].append(f'{api_url}?q=pid:{pid}')
else:
data['ES duplicate'][pid] = len(mon.get('ES duplicate'))
data['ES duplicate'].append(pid)
return jsonify({'data': data})


Expand Down

0 comments on commit d32a45f

Please sign in to comment.