in src/ui/ui.py [0:0]
def _button_helper_drug_update(self, b):
"""Helper method defining the button's action to manually update the disambiguation mapping of a drug.
Args:
b (-): Required argument on action functions for buttons.
Returns:
None
"""
if hasattr(self, "nlq"):
for d in self.proc_entities["DRUG"]:
if d["Text"] == self.mapped_drug_category.value:
d["Query-arg"] = self.mapped_update_drug_text.value
break
self._visualize_drug_info()
self._display_main()
else:
self._triger_no_input_warning()