snapshot correct indexing
This commit is contained in:
parent
f7392cf31d
commit
0a9368922a
|
@ -70,14 +70,8 @@ class SearchView(InventaryMixin):
|
||||||
return self.search_hids(query, offset, limit)
|
return self.search_hids(query, offset, limit)
|
||||||
|
|
||||||
devices = []
|
devices = []
|
||||||
dev_id = []
|
|
||||||
|
|
||||||
for x in matches:
|
for x in matches:
|
||||||
# devices.append(self.get_annotations(x))
|
devices.append(self.get_annotations(x))
|
||||||
dev = self.get_annotations(x)
|
|
||||||
if dev.id not in dev_id:
|
|
||||||
devices.append(dev)
|
|
||||||
dev_id.append(dev.id)
|
|
||||||
|
|
||||||
count = matches.size()
|
count = matches.size()
|
||||||
# TODO fix of pagination, the count is not correct
|
# TODO fix of pagination, the count is not correct
|
||||||
|
|
|
@ -49,8 +49,10 @@ class Build:
|
||||||
self.create_annotations()
|
self.create_annotations()
|
||||||
|
|
||||||
def index(self):
|
def index(self):
|
||||||
|
timestamp = self.json['timestamp']
|
||||||
snap = json.dumps(self.json)
|
snap = json.dumps(self.json)
|
||||||
index(self.user.institution, self.uuid, snap)
|
|
||||||
|
index(self.user.institution, self.get_hid(self.json) , self.uuid, timestamp, snap)
|
||||||
|
|
||||||
def generate_chids(self):
|
def generate_chids(self):
|
||||||
self.algorithms = {
|
self.algorithms = {
|
||||||
|
|
Loading…
Reference in New Issue