make db.DuckStats.ratio() actually calculate a ratio
This commit is contained in:
parent
65d84ce424
commit
e4f4621d1b
2
db.py
2
db.py
|
@ -77,7 +77,7 @@ class DuckStats:
|
||||||
return self.countstatus(nick, "M")
|
return self.countstatus(nick, "M")
|
||||||
|
|
||||||
def ratio(self, nick):
|
def ratio(self, nick):
|
||||||
return (self.cought(nick) / self.missed(nick)) * 100
|
return self.cought(nick) / self.missed(nick)
|
||||||
|
|
||||||
def channels(self, nick):
|
def channels(self, nick):
|
||||||
channels = set()
|
channels = set()
|
||||||
|
|
Loading…
Reference in New Issue