Skip to content

Commit 30049d1

Browse files
committed
Bug fix - self._mode not mode
1 parent 8758350 commit 30049d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simvue/worker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def heartbeat(self):
3131
"""
3232
Send a heartbeat, with retries
3333
"""
34-
if mode == 'online':
34+
if self._mode == 'online':
3535
response = requests.put(f"{self._url}/api/runs/heartbeat",
3636
headers=self._headers,
3737
json={'name': self._name})
@@ -44,7 +44,7 @@ def post(self, endpoint, data):
4444
"""
4545
Send the supplied data, with retries
4646
"""
47-
if mode == 'online':
47+
if self._mode == 'online':
4848
response = requests.post(f"{self._url}/api/{endpoint}",
4949
headers=self._headers_mp,
5050
data=data)

0 commit comments

Comments
 (0)