Update jd_identical.py

This commit is contained in:
Hans155922 2022-08-11 07:39:04 +08:00 committed by GitHub
parent b1efee82c4
commit ba89cdbd9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,10 +101,6 @@ def get_duplicate_list(tasklist: list) -> tuple:
names = []
cmds = []
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:
ids.append(task.get("id"))
else: