Commit ab1b07ac authored by Mattia Rizzolo's avatar Mattia Rizzolo

pep8-ify download.py

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 73e60439
......@@ -115,7 +115,7 @@ class Downloads:
response = requests.get("%s/MD5SUMS" % path)
if response.status_code == 404:
raise RuntimeError(
"Missing {} {} on {}".format(distro, release, source),
"Missing {} {} on {}".format(distro, release, url),
)
for line in response.text.split("\n"):
......@@ -223,7 +223,7 @@ class Downloads:
def index():
return flask.render_template(
"download/index.html",
distros = self.config["distros"],
distros=self.config["distros"],
)
@bp.route("/<distro>")
......@@ -234,10 +234,10 @@ class Downloads:
return flask.render_template(
"download/landing.html",
distro_name = distro,
distro = self.config["distros"][distro],
releases = self.config["releases"],
archs = self.config["archs"],
distro_name=distro,
distro=self.config["distros"][distro],
releases=self.config["releases"],
archs=self.config["archs"],
)
@bp.route("/+redirect", methods=["POST"])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment