diff --git a/job_signoff.py b/job_signoff.py index c882994..8fc52e0 100644 --- a/job_signoff.py +++ b/job_signoff.py @@ -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: diff --git a/slavestothemachine.py b/slavestothemachine.py index fefe32b..0990401 100644 --- a/slavestothemachine.py +++ b/slavestothemachine.py @@ -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 = {}