Fixed stuff

This commit is contained in:
Jacob Henry 2018-11-04 01:25:42 -05:00
parent 97a1d455e3
commit 5d713b1a90
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ def signoff_callback(slack: SlackClient, msg: dict, match: Match) -> None:
name = match.group(1)
# Also, who just signed us off?
signer = identifier.lookup_msg_brother(msg)["name"]
signer = identifier.lookup_msg_brother(msg).name
# Try giving the person a point
try:
@ -109,7 +109,7 @@ def punish_callback(slack: SlackClient, msg: dict, match: Match) -> None:
name = match.group(2)
# Also, who just signed us off?
signer = identifier.lookup_msg_brother(msg)["name"]
signer = identifier.lookup_msg_brother(msg).name
# Try giving the person a point
try:

View File

@ -26,7 +26,7 @@ def count_work_callback(slack: SlackClient, msg: dict, match: Match) -> None:
# Couple things to work through.
# One: Who sent the message?
who_wrote = identifier.lookup_msg_brother(msg)
who_wrote_label = "{} [{}]".format(who_wrote["name"], who_wrote["scroll"])
who_wrote_label = "{} [{}]".format(who_wrote.name, who_wrote.scroll)
# Two: What work did they do?
new_work = {}