mirror of https://github.com/zulip/zulip.git
compare-settings-to-template: Simplify and dedent logic.
This commit is contained in:
parent
d205050ab0
commit
b6b6faa404
|
@ -35,7 +35,9 @@ while url is not None:
|
|||
|
||||
url = resp.links.get("next", {}).get("url")
|
||||
for tag in [t["name"] for t in resp.json()]:
|
||||
if re.match(r"^\d+\.\d+(\.\d+)?$", tag):
|
||||
if not re.match(r"^\d+\.\d+(\.\d+)?$", tag):
|
||||
continue
|
||||
|
||||
print(f" - {tag}")
|
||||
resp = requests.get(
|
||||
f"https://raw.githubusercontent.com/zulip/zulip/{tag}/zproject/prod_settings_template.py",
|
||||
|
|
Loading…
Reference in New Issue