Improvements to submission querying.

This commit is contained in:
lwark
2024-04-26 11:10:19 -05:00
parent 8cc161ec56
commit b619d751b8
9 changed files with 84 additions and 166 deletions

View File

@@ -50,7 +50,10 @@ class AddReagentForm(QDialog):
if expiry == None:
self.exp_input.setDate(QDate.currentDate())
else:
self.exp_input.setDate(expiry)
try:
self.exp_input.setDate(expiry)
except TypeError:
self.exp_input.setDate(QDate.currentDate())
# widget to get reagent type info
self.type_input = QComboBox()
self.type_input.setObjectName('type')

View File

@@ -71,7 +71,7 @@ class ObjectSelector(QDialog):
self.layout.addWidget(self.buttonBox)
self.setLayout(self.layout)
def getValues(self) -> str:
def parse_form(self) -> str:
"""
Get KitType(str) from widget