Skip to content

Instantly share code, notes, and snippets.

@jattoabdul
Created July 11, 2018 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jattoabdul/bccfecc546fa46201cc9bcb5e0bf9f39 to your computer and use it in GitHub Desktop.
Save jattoabdul/bccfecc546fa46201cc9bcb5e0bf9f39 to your computer and use it in GitHub Desktop.
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