mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
Merge branch 'stop-overwriting-index-png' into 'master'
update: only gen index.png when making index.html See merge request fdroid/fdroidserver!1575
This commit is contained in:
commit
30e308ac8a
1 changed files with 1 additions and 2 deletions
|
@ -155,12 +155,11 @@ def make_website(apps, repodir, repodict):
|
|||
if not os.path.exists(repodir):
|
||||
os.makedirs(repodir)
|
||||
|
||||
qrcode.make(link_fingerprinted).save(os.path.join(repodir, "index.png"))
|
||||
|
||||
html_name = 'index.html'
|
||||
html_file = os.path.join(repodir, html_name)
|
||||
|
||||
if _should_file_be_generated(html_file, autogenerate_comment):
|
||||
qrcode.make(link_fingerprinted).save(os.path.join(repodir, "index.png"))
|
||||
with open(html_file, 'w') as f:
|
||||
name = repodict["name"]
|
||||
description = repodict["description"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue