add a small fix in db.DuckStats.channels(...)

This commit is contained in:
randomuser 2021-07-21 00:28:53 -05:00
parent 9dabdd7ac6
commit 65d84ce424
1 changed files with 1 additions and 1 deletions

2
db.py
View File

@ -82,5 +82,5 @@ class DuckStats:
def channels(self, nick):
channels = set()
for i in self.db.db:
if i.nick == nick: channels.append(i.channel)
if i.nick == nick: channels.add(i.channel)
return len(channels)