-
This commit is contained in:
parent
08ff961201
commit
ee19803704
6
app.py
6
app.py
@ -40,9 +40,9 @@ def check_allocation_thread_function():
|
|||||||
ids = db.get_image_allocation_all()
|
ids = db.get_image_allocation_all()
|
||||||
print(ids)
|
print(ids)
|
||||||
for x in ids:
|
for x in ids:
|
||||||
print(x)
|
print(x[0])
|
||||||
ip = db.get_image_allocation_clientip_id(x)
|
ip = db.get_image_allocation_clientip_id(x[0])
|
||||||
ping_thread = PingThread(ip, x)
|
ping_thread = PingThread(ip, x[0])
|
||||||
ping_thread.start()
|
ping_thread.start()
|
||||||
|
|
||||||
sleep(10)
|
sleep(10)
|
||||||
|
Loading…
Reference in New Issue
Block a user