update : 01.07.2025 17:57:20,64
This commit is contained in:
parent
8886a1e658
commit
f675fcb0e0
4
start.py
4
start.py
@ -289,9 +289,9 @@ def test_hetonis():
|
|||||||
data_response = response.json()
|
data_response = response.json()
|
||||||
for data in data_response:
|
for data in data_response:
|
||||||
print(data)
|
print(data)
|
||||||
worker = WorkersLocation.object.filter(uid = data['id']).first()
|
worker = WorkersLocation.objects.filter(uid = data['id']).first()
|
||||||
if worker is None:
|
if worker is None:
|
||||||
WorkersLocation.object.create(
|
WorkersLocation.objects.create(
|
||||||
uid = data['id'],
|
uid = data['id'],
|
||||||
name = date['name'],
|
name = date['name'],
|
||||||
active = True,
|
active = True,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user