diff options
author | Emile <hanemile@protonmail.com> | 2019-10-26 16:30:57 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-26 16:32:16 +0200 |
commit | ad6637c23687f8d668029e16225c07b50085e095 (patch) | |
tree | 3c3d4f408bd09e3bb957cda7a69b4050e524ce3d /src | |
parent | 091c205f0b584aea72ad7259efd383b657329dbf (diff) |
selecting all challenge names
previously, just challenges with 200 points
Diffstat (limited to 'src')
-rw-r--r-- | src/db.go | 2 |
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 { |