mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 10:58:44 +08:00
Update jd_identical.py
This commit is contained in:
parent
b1efee82c4
commit
ba89cdbd9d
@ -101,10 +101,6 @@ def get_duplicate_list(tasklist: list) -> tuple:
|
|||||||
names = []
|
names = []
|
||||||
cmds = []
|
cmds = []
|
||||||
for task in tasklist:
|
for task in tasklist:
|
||||||
url = f"http://{ipport}/api/system"
|
|
||||||
response = requests.get(url=url)
|
|
||||||
data = json.loads(response.content.decode("utf-8"))
|
|
||||||
version = data.get("data").get("version")
|
|
||||||
if getversion() == 1:
|
if getversion() == 1:
|
||||||
ids.append(task.get("id"))
|
ids.append(task.get("id"))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user