git.graph-it.com
/
graphit
/
controlpi-graph.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
771cf8c
)
Rotate messages before sending to graph.
author
Benjamin Braatz
<bb@bbraatz.eu>
Tue, 5 Oct 2021 19:15:43 +0000
(21:15 +0200)
committer
Benjamin Braatz
<bb@bbraatz.eu>
Tue, 5 Oct 2021 19:15:43 +0000
(21:15 +0200)
controlpi_plugins/graph.py
patch
|
blob
|
history
diff --git
a/controlpi_plugins/graph.py
b/controlpi_plugins/graph.py
index 7e4ffade19774fb55a9ee779b983d6c00ae839f1..f13d9c1c44c805af14ffd56fb91a65b716e500f0 100644
(file)
--- a/
controlpi_plugins/graph.py
+++ b/
controlpi_plugins/graph.py
@@
-51,9
+51,10
@@
class Graph(BasePlugin):
if comessage_guid:
await self._call('verknuepfe', [comessage_guid,
self._coroot_guid])
- await self._call('setze', [comessage_guid, 'comessage_json',
- json.dumps(self._messages)])
+ messages = self._messages
self._messages = []
+ await self._call('setze', [comessage_guid, 'comessage_json',
+ json.dumps(messages)])
await self._call('setze', [comessage_guid, 'comessage_ready',
True])
else: