Skip to content
Snippets Groups Projects
Commit 415e76b9 authored by wactbprot's avatar wactbprot
Browse files

Merge branch 'master' of gitproxy:wactbprot/anselm

parents 62856098 b81f360f
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,7 @@ class Anselm(System):
def add_device_line(self):
self.current_grid_line +=1
line = self.current_grid_line
self.add_widget_to_grid(self.make_cal_id_combo(line = line), line, self.cal_id_col)
self.add_widget_to_grid(self.make_auxobj_combo(line = line), line, self.auxobj_col)
......@@ -266,6 +267,7 @@ class Anselm(System):
self.log.info("task with name {} selected at line {}".format(task_name, line))
def auxobj_selected(self, combo, line):
doc_id = combo.currentText()
self.aset('doc_id', line, doc_id)
self.log.debug("select {} at line {}".format(doc_id, line))
......
......@@ -9,9 +9,9 @@ class Worker(System):
work_on_line = None
def __init__(self):
super().__init__()
relay_dict = self.config['relay']
relay_dict = self.config.get('relay')
self.relay_dict = relay_dict
self.relay_url = "http://{}:{}".format(relay_dict['host'], relay_dict['port'])
self.relay_url = "http://{}:{}".format(relay_dict.get('host'), relay_dict.get('port'))
self.headers = {'content-type': 'application/json'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment