Created
July 11, 2018 10:12
-
-
Save jattoabdul/bccfecc546fa46201cc9bcb5e0bf9f39 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def my_tasks(self): | |
email = self.user_info['user']['profile']['email'] | |
recipient = self.user_info['user']['id'] | |
task_cells = list(filter(lambda x: x['Email Address'] == email, self.sheet)) | |
for index, row in enumerate(task_cells): | |
text_detail = ( | |
'*Task #{} for {}:* \n\n' | |
'*Hey {},* Today is the check-in day for your writeup titled\n' | |
'`{}`.\n\n' | |
'Whats the status of the article?\n' | |
'PS: Please reply to this thread, the managers will review and reply you ASAP').format(str(index + 1),row['Next Check-In'], row['Name'], row['Most Recent Learning Experience you\'d like to write about']) | |
self.slackhelper.post_message(text_detail, recipient) | |
return None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment