Improvements to submission querying.
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user