Skip to content

Commit dbf5cda

Browse files
authored
Merge pull request CloudBotIRC#179 from linuxdaemon/gonzobot+fix-hook-stats
Use the correct table when looking up hook specific stats
2 parents dc08bd3 + 529cdd6 commit dbf5cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hook_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def do_channel_stats(data, network, channel):
7474

7575
def do_hook_stats(data, hook_name):
7676
table = [
77-
(net, chan, hooks[hook_name]) for net, chans in data['network'].items() for chan, hooks in chans.items()
77+
(net, chan, hooks[hook_name]) for net, chans in data['channel'].items() for chan, hooks in chans.items()
7878
]
7979
return ("Network", "Channel", "Uses - Success", "Uses - Errored"), \
8080
[

0 commit comments

Comments
 (0)