summary refs log tree commit diff stats
path: root/web
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-07-20 23:12:59 +0200
committerAraq <rumpf_a@web.de>2017-07-20 23:12:59 +0200
commit53538da049f5ec9d40fc2e2eddf88d14c5075e25 (patch)
tree60eabe9adc512ab91724f3e5e344a19ca7733c97 /web
parent6f89323385f3a0aedaf8e83ec72fe73477b3518c (diff)
downloadNim-53538da049f5ec9d40fc2e2eddf88d14c5075e25.tar.gz
make nimblepkglist tool work with newer versions of the website
Diffstat (limited to 'web')
-rw-r--r--web/nimblepkglist.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/nimblepkglist.nim b/web/nimblepkglist.nim
index 7070f281b..870944ab0 100644
--- a/web/nimblepkglist.nim
+++ b/web/nimblepkglist.nim
@@ -33,6 +33,7 @@ proc processContent(content: string) =
 
   for pkg in jsonArr:
     assert pkg.kind == JObject
+    if not pkg.hasKey"url": continue
     let pkgWeb =
       if pkg.hasKey("web"): pkg["web"].str
       else: pkg["url"].str
@@ -40,7 +41,7 @@ proc processContent(content: string) =
       desc = pkg["description"].str
       dot = if desc.high > 0 and desc[desc.high] in endings: "" else: "."
       listItem = li(a(href=pkgWeb, pkg["name"].str), " ", desc & dot)
-    if pkg["url"].str.startsWith("git://github.com/nimrod-code") or
+    if pkg["url"].str.startsWith("https://github.com/nim-lang") or
        pkg["url"].str.startsWith("git://github.com/nim-lang") or
        "official" in pkg["tags"].elems:
       officialCount.inc