about summary refs log tree commit diff
path: root/src/db.go
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-26 16:30:57 +0200
committerEmile <hanemile@protonmail.com>2019-10-26 16:32:16 +0200
commitad6637c23687f8d668029e16225c07b50085e095 (patch)
tree3c3d4f408bd09e3bb957cda7a69b4050e524ce3d /src/db.go
parent091c205f0b584aea72ad7259efd383b657329dbf (diff)
selecting all challenge names
previously, just challenges with 200 points
Diffstat (limited to 'src/db.go')
-rw-r--r--src/db.go2
1 files changed, 1 insertions, 1 deletions
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 {