From a73c843f00facf83817a907420c4497ca1613d14 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Thu, 16 Feb 2017 15:30:08 -0800 Subject: well that date stuff didnt work right at all whoops --- README.md | 8 ++++---- crawler/crawler.go | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fa5c13d..9c0afe9 100644 --- a/README.md +++ b/README.md @@ -47,11 +47,11 @@ Postgresql support is left as an exercise for the reader to implement and send a ### Get neko code - $ go get github.com/adammathes/neko + $ go get adammathes.com/neko ### Get dependencies - $ cd $GOPATH/src/github.com/adammathes/neko + $ cd $GOPATH/src/adammathes.com/neko $ make deps or... @@ -71,11 +71,11 @@ Also there's a Makefile there so a simple "make" should work. Maybe? Makefiles a ### Create MySQL table and user - $ msyqladmin -uroot -p create neko + $ mysqladmin -uroot -p create neko $ mysql -uroot -p neko < init.sql $ echo "probably a good idea to make a limited privilege user" $ mysql -uroot -p neko - CREATE USER 'neko'@'localhost' identified by 'password' yourgreatpasswordhere; + CREATE USER 'neko'@'localhost' identified by 'yourawesomepasswordgoeshere'; GRANT ALL PRIVILEGES ON neko.* TO 'neko'@'localhost'; ### Configuration diff --git a/crawler/crawler.go b/crawler/crawler.go index 8f3108d..c352736 100644 --- a/crawler/crawler.go +++ b/crawler/crawler.go @@ -72,9 +72,9 @@ func CrawlFeed(f *feed.Feed, ch chan<- string) { item.Description = encoded } - if(i.PublishedParsed != nil) { - item.PublishDate = i.PublishedParsed.Format(time.RFC3339) - } + // if(i.PublishedParsed != nil) { + // item.PublishDate = i.PublishedParsed.Format(time.RFC3339) + // } item.FeedId = f.Id err := item.Create() if err != nil { -- cgit v1.2.3