Commit 49278315 authored by Alejandro De Maria Antolinos's avatar Alejandro De Maria Antolinos

Merge branch 'issue_22' into 'master'

It fixes #22

Closes #22

See merge request !11
parents a5eb467a 578eda4f
......@@ -635,13 +635,15 @@ class MetadataManager (PyTango.Device_4Impl):
}
)
requests.adapters.DEFAULT_RETRIES = 1
headers = {'Content-Type': 'application/json', 'Accept':'application/json'}
r = requests.post(self.icatplus_server + "/investigations/" + str(self.get_proposal()) + "/instrument/" + self.beamlineID.lower() +"/events/notification?sessionId=" + self.API_KEY,
requests.post(self.icatplus_server + "/investigations/" + str(self.get_proposal()) + "/instrument/" + self.beamlineID.lower() +"/events/notification?sessionId=" + self.API_KEY,
data=(json.dumps(params)),
headers=headers)
headers=headers,
timeout=0.1)
except Exception as e:
self.logger.error(e)
traceback.print_exc()
pass
def notifyInfo(self, message):
self.sendNotification("info", message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment