Skip to content
Snippets Groups Projects
Commit 640ebd15 authored by Stefano Borini's avatar Stefano Borini
Browse files

Using \n as data divider

parent 0f250662
No related branches found
No related tags found
1 merge request!79Deliver notification info
......@@ -51,11 +51,13 @@ class UINotification(BaseNotificationListener):
def _format_event(self, event):
if isinstance(event, MCOStartEvent):
data = "MCO_START"
data = "MCO_START\n"
elif isinstance(event, MCOFinishEvent):
data = "MCO_FINISH"
data = "MCO_FINISH\n"
elif isinstance(event, MCOProgressEvent):
data = "MCO_PROGRESS {} {}".format(event.input, event.output)
data = "MCO_PROGRESS\n{}\n{}\n".format(
" ".join([str(x) for x in event.input]),
" ".join([str(x) for x in event.output]))
else:
return None
......
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