in bots/incident-response-slackbot/incident_response_slackbot/db/database.py [0:0]
def get_user_id(self, message_ts):
"""
Return the user_id given a message_ts.
"""
self.data = self._load_data()
for user_id, data in self.data.items():
if data["message_ts"] == message_ts:
return user_id
return None