From 304fcff75c561115d2816f8bb9c1074b70a204ee Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 10 Jul 2019 16:29:44 +0100 Subject: fixes #5 --- wat/db.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wat/db.go') 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) -- cgit v1.2.3