bug fix
This commit is contained in:
@ -49,10 +49,10 @@ class SciLog():
|
||||
@pinned_to_logbook(["parentId", "ownerGroup", "accessGroups"])
|
||||
def send_message(self, msg, **kwargs):
|
||||
url = self.http_client.address + "/basesnippets"
|
||||
payload = kwargs
|
||||
snippet = Paragraph()
|
||||
snippet.import_dict(kwargs)
|
||||
snippet.textcontent = msg
|
||||
snippet.textcontent = msg
|
||||
payload = snippet.to_dict(include_none=False)
|
||||
headers = HEADER_JSON.copy()
|
||||
return Basesnippet.from_http_response(self.http_client.post_request(url, payload=payload, headers=headers))
|
||||
|
||||
|
Reference in New Issue
Block a user