~hokiegeek/seculardb

5ef9ffabef76017f250d930e13edf2a77023a67c — HokieGeek 5 months ago 8c359c4 main
Trying to fix some changes to the DB
3 files changed, 6 insertions(+), 4 deletions(-)

M deploy-function.sh
M go.mod
M scraper.go
M deploy-function.sh => deploy-function.sh +1 -1
@@ 1,2 1,2 @@
#!/bin/sh
gcloud --project ${1} functions deploy seculardb --memory 128MB --runtime go111 --source . --entry-point Serve --trigger-http
gcloud --project ${1} functions deploy seculardb --memory 128MB --runtime go113 --source . --entry-point Serve --trigger-http

M go.mod => go.mod +1 -1
@@ 1,6 1,6 @@
module git.sr.ht/~hokiegeek/seculardb

go 1.12
go 1.16

require (
	git.sr.ht/~hokiegeek/htmlscrape v0.4.0

M scraper.go => scraper.go +4 -2
@@ 94,11 94,13 @@ func Build() (db DB, err error) {
					rating = 3
				case ratingStr == "secular":
					rating = 4
				case strings.Contains(ratingStr, "super secular!"):
				case strings.Contains(ratingStr, "super secular!") || strings.Contains(ratingStr, "super secular"):
					rating = 5
				default:
					fmt.Printf("[%s] rating: %s\n", name, ratingStr)
					panic("shit")
					rating = 0
					// continue
					// panic("shit")
				}

				entry := Entry{