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

Merge branch 'issue_27' into 'master'

It fixes #27

Closes #27

See merge request !14
parents 3e9eb3c0 256fe90d
......@@ -637,8 +637,10 @@ class MetadataManager (PyTango.Device_4Impl):
# Some versions of requests have not got this configuration
#requests.adapters.DEFAULT_RETRIES = 1
headers = {'Content-Type': 'application/json', 'Accept':'application/json'}
print(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,
#print(self.icatplus_server + "/investigations/" + str(self.get_proposal()) + "/instrument/" + self.beamlineID.lower() +"/events/notification?sessionId=" + self.API_KEY)
print(self.icatplus_server + "/logbook/" + str(self.API_KEY) + "/investigation/name/" + str(self.get_proposal()) + "/instrument/name/" + self.beamlineID.lower() + "/event")
url = self.icatplus_server + "/logbook/" + str(self.API_KEY) + "/investigation/name/" + str(self.get_proposal()) + "/instrument/name/" + str(self.beamlineID.lower()) + "/event"
requests.post(url,
data=(json.dumps(params)),
headers=headers,
timeout=0.1)
......
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