Skip to content

Commit 0b1a9cd

Browse files
committed
Ensure dict keys are strings, not values
1 parent 0a26c89 commit 0b1a9cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/runtime.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ def send_status(cmd, g):
206206
started = self.runtime.started
207207
# NOTE: running indicates network is actively running, data being processed
208208
# for this example, we consider ourselves running as long as we have been started
209-
running = started
210-
payload = {
211-
graph: g,
212-
started: started,
213-
running: running,
209+
running = self.runtime.started
210+
response = {
211+
'graph': g,
212+
'started': started,
213+
'running': running,
214214
}
215-
self.send('network', cmd, payload)
215+
self.send('network', cmd, response)
216216

217217
graph = payload.get('graph', None)
218218
if command == 'getstatus':

0 commit comments

Comments
 (0)