diff --git a/modules/__pycache__/render.cpython-38.pyc b/modules/__pycache__/render.cpython-38.pyc index 46a568a..58eb10c 100644 Binary files a/modules/__pycache__/render.cpython-38.pyc and b/modules/__pycache__/render.cpython-38.pyc differ diff --git a/modules/__pycache__/search.cpython-38.pyc b/modules/__pycache__/search.cpython-38.pyc index 8bf4006..918d655 100644 Binary files a/modules/__pycache__/search.cpython-38.pyc and b/modules/__pycache__/search.cpython-38.pyc differ diff --git a/modules/render.py b/modules/render.py index 31142c1..eeae20d 100644 --- a/modules/render.py +++ b/modules/render.py @@ -16,25 +16,32 @@ def html(page, json): if "licenses" in json and json["licenses"]: free = True + + page = page + "\n

" try: page = page + '\nLogo' except: pass - - # Name / Website link name = json.get("names",["Unknown"])[0] - - page = page + "\n" + name - page = page + "

" # Few words about it page = page + "

"+json.get("comment","")+"

" - + # I want to show nothing else from if it's proprietary + if not free: + l = json.get("issues", []) + page = page +"

Anti-Features / Problems:

" + + for i in l: + page = page + "
  "+i + + return page + + # Links # @@ -55,36 +62,15 @@ def html(page, json): """ page = page + "
" - - website = json.get("links",{}).get("website", "") - if free and website: - page = page + """ - - """ - git = json.get("links",{}).get("git", "") - if git: + links = json.get("links", {}) + for website in links: + if website in ["icon"]: + continue + link = links[website] page = page + """ - - """ - - wikipedia = json.get("links",{}).get("wikipedia", "") - if wikipedia: - page = page + """ - - """ - - documentation = json.get("links",{}).get("documentation", "") - if documentation: - page = page + """ - """ @@ -108,10 +94,10 @@ def html(page, json): continue page = page + "
" - page = page +""+categories[c]+"" + page = page +""+categories[c]+":" for i in l: - page = page + "  "+i+"
" + page = page + "  "+i+"
" page = page + "
"
- -
- -
- -
- +
+