Project

General

Profile

« Previous | Next » 

Revision 58430

added status

View differences:

dataciteExporter.py
64 64
    yield result
65 65

  
66 66

  
67
def is_available():
68
    es = Elasticsearch(hosts=['192.168.100.70','192.168.100.71','192.168.100.72', '192.168.100.73'], timeout=1000)  
69
    s = Search(using=es, index='datacite').query(Q('match', attributes__isActive=True))
70
    return s.count() >0
71

  
72

  
73

  
74

  

Also available in: Unified diff