Skip to content

Commit

Permalink
移除多余空行并
Browse files Browse the repository at this point in the history
  • Loading branch information
wjz304 committed Jan 27, 2025
1 parent 4a3339d commit 2f2b9b9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion files/initrd/opt/rr/include/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ def getmodels(platforms=None):
req = session.get(url, timeout=10, verify=False)
req.encoding = "utf-8"
p = re.compile(r"<mUnique>(.*?)</mUnique>.*?<mLink>(.*?)</mLink>", re.MULTILINE | re.DOTALL)

data = p.findall(req.text)
for item in data:
if not "DSM" in item[1]:
Expand Down
2 changes: 1 addition & 1 deletion files/initrd/opt/rr/include/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ function connectwlanif() {
kill -9 "$(cat /var/run/wpa_supplicant.pid.${1})"
rm -f "/var/run/wpa_supplicant.pid.${1}"
fi
wpa_supplicant -i "${1}" -c "${CONF}" -B -P "/var/run/wpa_supplicant.pid.${1}" >/dev/null 2>&1
wpa_supplicant -i "${1}" -c "${CONF}" -qq -B -P "/var/run/wpa_supplicant.pid.${1}" >/dev/null 2>&1
fi
return 0
}
Expand Down
1 change: 0 additions & 1 deletion scripts/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def getmodels(workpath, jsonpath, xlsxpath):
req = session.get(url, timeout=10, verify=False)
req.encoding = "utf-8"
p = re.compile(r"<mUnique>(.*?)</mUnique>.*?<mLink>(.*?)</mLink>", re.MULTILINE | re.DOTALL)

data = p.findall(req.text)
except Exception as e:
click.echo(f"Error: {e}")
Expand Down

0 comments on commit 2f2b9b9

Please sign in to comment.