summaryrefslogtreecommitdiffstats
path: root/wat/db.go
diff options
context:
space:
mode:
authoralex2019-07-10 16:29:44 +0100
committeralex2019-07-10 16:29:44 +0100
commit304fcff75c561115d2816f8bb9c1074b70a204ee (patch)
treef8c055ec2d236f48fd5f6512e70bf17b476ce3a8 /wat/db.go
parente1eddb1b1125acf12afaa2ea7630d12f6bc4bc0d (diff)
downloadwatbot-304fcff75c561115d2816f8bb9c1074b70a204ee.tar.gz
watbot-304fcff75c561115d2816f8bb9c1074b70a204ee.tar.bz2
watbot-304fcff75c561115d2816f8bb9c1074b70a204ee.zip
fixes #5
Diffstat (limited to 'wat/db.go')
-rw-r--r--wat/db.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/wat/db.go b/wat/db.go
index 672d65d..aa86f1c 100644
--- a/wat/db.go
+++ b/wat/db.go
@@ -128,6 +128,10 @@ func (w *WatDb) TopLost() []Player {
return w.GetTopColumn("coins_lost")
}
+func (w *WatDb) Bankruptest() []Player {
+ return w.GetTopColumn("bankrupcy")
+}
+
func (w *WatDb) TopTen() []Player {
var user = make([]Player, 10)
w.db.Where("nick != 'watt'").Limit(10).Order("coins desc").Find(&user)