onboarding: Simplify get_turtle_message.

This commit is contained in:
Rishi Gupta
2019-02-24 13:22:32 -08:00
committed by Tim Abbott
parent e8741c448d
commit a914b86694
2 changed files with 4 additions and 12 deletions

View File

@@ -225,12 +225,3 @@ def get_topic_history_for_web_public_stream(recipient: Recipient) -> List[Dict[s
cursor.close()
return generate_topic_history_from_db_rows(rows)
def get_turtle_message(message_ids: List[int]) -> Message:
# This is used for onboarding, and it's only extracted
# here to make subject -> topic sweeping easier.
turtle_message = Message.objects.get( # nolint
id__in=message_ids,
subject='topic demonstration',
content__icontains='cute/turtle.png')
return turtle_message