run_status uses 'status' instead of 'val'

This commit is contained in:
Patrick McDonagh
2016-06-06 20:52:35 -05:00
parent bf90060f97
commit b081120858

View File

@@ -77,7 +77,7 @@ class Status(Tag):
post_data = {'status': self.value}
r = requests.post('{}/run_status'.format(web_address), data=post_data)
resp = json.loads(r.text)
print("Stored {} for {} at {}".format(resp['val'], self.name, resp['createdAt']))
print("Stored {} for {} at {}".format(resp['status'], self.name, resp['createdAt']))
self.last_send_time = time.time()