From 9512c0b7ee4d8c6d86931245c822d1be841e4ce5 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 9 Mar 2018 02:34:50 +0100 Subject: [PATCH] Minor changes --- jobs/mal-crawler/mal-crawler.go | 5 +++-- pages/admin/admin.pixy | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/jobs/mal-crawler/mal-crawler.go b/jobs/mal-crawler/mal-crawler.go index 34ed121c..ecee0697 100644 --- a/jobs/mal-crawler/mal-crawler.go +++ b/jobs/mal-crawler/mal-crawler.go @@ -19,8 +19,6 @@ const ( ) func main() { - defer arn.Node.Close() - // Filter anime with MAL ID animes := []*arn.Anime{} @@ -36,6 +34,9 @@ func main() { color.Yellow("Found %d anime", len(animes)) + // We don't need the database anymore + arn.Node.Close() + // Create crawler malCrawler := crawler.New( map[string]string{ diff --git a/pages/admin/admin.pixy b/pages/admin/admin.pixy index d8fcb7c3..5438a46b 100644 --- a/pages/admin/admin.pixy +++ b/pages/admin/admin.pixy @@ -3,8 +3,9 @@ component AdminTabs Tab("Server", "server", "/admin") Tab("WebDev", "html5", "/admin/webdev") Tab("Purchases", "shopping-cart", "/admin/purchases") - - a.tab.ajax(href="/editor", aria-label="Editor") + + .corner-buttons + a.button.ajax(href="/editor", aria-label="Editor") Icon("pencil") span.tab-text Editor