about summary refs log tree commit diff
path: root/src/main.go
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-09 18:32:29 +0200
committerEmile <hanemile@protonmail.com>2019-10-09 18:32:29 +0200
commitde78273f080634b57cc0e0e7c3e05e3ff03d0478 (patch)
tree3597a0160b615499797a0d0e725b2cfe35f58315 /src/main.go
parentb88e0e41d59c26dd281b41bdd0c754f54e90e3e2 (diff)
metrics exposed on /
Diffstat (limited to 'src/main.go')
-rw-r--r--src/main.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.go b/src/main.go
index a52c043..b974704 100644
--- a/src/main.go
+++ b/src/main.go
@@ -8,6 +8,11 @@ import (
 
 var (
 	port *int
+
+	// map the username to the amount of challenges solved
+	// TODO: challenges should get a score and the score should be exposed
+	// instead of "solved" or "not solved".
+	userScore map[string]int
 )
 
 func main() {
@@ -19,9 +24,7 @@ func main() {
 	go func() {
 		for {
 			// get stats
-			log.Printf("Fetching the stats")
 			listDockerContainers()
-			log.Printf("Done fetching the stats")
 			time.Sleep(1 * time.Second)
 		}
 	}()