diff --git a/start.py b/start.py index 2f0376d..cbac7d9 100644 --- a/start.py +++ b/start.py @@ -289,9 +289,9 @@ def test_hetonis(): data_response = response.json() for data in data_response: print(data) - worker = WorkersLocation.object.filter(uid = data['id']).first() + worker = WorkersLocation.objects.filter(uid = data['id']).first() if worker is None: - WorkersLocation.object.create( + WorkersLocation.objects.create( uid = data['id'], name = date['name'], active = True,