From a13d8abf124875d66dbf6cd22d3225379cbcd55b Mon Sep 17 00:00:00 2001 From: "A. Svensson" Date: Tue, 19 May 2015 20:04:31 +0200 Subject: [PATCH] Added todo note. --- bin/update_graphs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/update_graphs.go b/bin/update_graphs.go index c71585b..e786d1f 100644 --- a/bin/update_graphs.go +++ b/bin/update_graphs.go @@ -121,6 +121,7 @@ func createweekdaygraph(db *sql.DB, id int, title string) { ofilename := filepath.Join(save_dir, fmt.Sprintf("%s%s", prefix, hash)) // get the server's data and write it to the file + // TODO: Move sunday (first day in list at 0) to the end... rows, err := db.Query("select strftime('%w', created) as weekday, avg(players) from gameservers_serverhistory where server_id = ? and created >= ? group by weekday;", id, last_week) checkerror(err) defer rows.Close()