Add edit page, dialog based item page. Consider switching to popups.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""Interactions with the Meilisearch API for adding and searching cables."""
|
||||
import sys
|
||||
|
||||
from meilisearch import Client
|
||||
from meilisearch.task import TaskInfo
|
||||
from meilisearch.errors import MeilisearchApiError
|
||||
@@ -45,6 +47,8 @@ class InventorySearch:
|
||||
# make a variable to easily reference the index
|
||||
self.idxref = self.client.index(self.index)
|
||||
time.sleep(0.05)
|
||||
# disable typos, we have serial numbers and such that should be exact match
|
||||
self.idxref.update_typo_tolerance({'enabled': False})
|
||||
# update filterable attributes if needed
|
||||
self.idxref.update_distinct_attribute('barcode')
|
||||
self.update_filterables(filterable_attrs)
|
||||
@@ -109,4 +113,4 @@ class InventorySearch:
|
||||
|
||||
# entrypoint
|
||||
if __name__ == "__main__":
|
||||
jbs = InventorySearch()
|
||||
ivs = InventorySearch()
|
||||
|
Reference in New Issue
Block a user