From ad6637c23687f8d668029e16225c07b50085e095 Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 26 Oct 2019 16:30:57 +0200 Subject: selecting all challenge names previously, just challenges with 200 points --- src/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db.go') diff --git a/src/db.go b/src/db.go index fb71b80..050ea05 100644 --- a/src/db.go +++ b/src/db.go @@ -37,7 +37,7 @@ func setupDatabase() (*sql.DB, error) { func dbGetName(db *sql.DB) string { // get the current name of the challenges - query := fmt.Sprintf("SELECT name FROM challenges WHERE points=200") + query := fmt.Sprintf("SELECT name FROM challenges") var names string err := db.QueryRow(query).Scan(&names) if err != nil { -- cgit 1.4.1