From 4d464051ff5e7615aa2aea02e81e3c41589f516f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20Br=C3=BCckmann?= <64bit@posteo.de> Date: Mon, 25 Jan 2021 10:17:06 +0100 Subject: [PATCH] Fix pycodestlye errors --- fdroidserver/index.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fdroidserver/index.py b/fdroidserver/index.py index 5465573d..609d9f1f 100644 --- a/fdroidserver/index.py +++ b/fdroidserver/index.py @@ -132,12 +132,13 @@ def make(apps, apks, repodir, archive): fdroid_signing_key_fingerprints) make_website(sortedapps, repodir, repodict) + def make_website(apps, repodir, repodict): if not os.path.exists(repodir): os.makedirs(repodir) html_name = 'index.html' - link=repodict["address"] + link = repodict["address"] html_file = os.path.join(repodir, html_name) with open(html_file, 'w') as f: @@ -172,9 +173,9 @@ def make_website(apps, repodir, repodict):

""".format(name=name, -description=description, -details="Currently it serves {} apps. To add it to your F-Droid client, scan the QR code (click it to enlarge) or use this URL:".format(len(apps)), -link=link)) + description=description, + details="Currently it serves {} apps. To add it to your F-Droid client, scan the QR code (click it to enlarge) or use this URL:".format(len(apps)), + link=link)) css_file = os.path.join(repodir, "index.css") with open(css_file, "w") as f: @@ -287,8 +288,7 @@ fieldset select, fieldset input, #reposelect select, #reposelect input { font-si .repoapplist { display:block; } .appdetailinner, .appdetailrow { display:block; } .appdetailcell { display:block; float:left; line-height:1.5em; } -} - """) +}""") images_dir = os.path.join(repodir, "images") if not os.path.exists(images_dir):