def METHOD_NAME(submission):
    """Save submission of a survey to session for further checks."""
    session.setdefault('submitted_surveys', {})[submission.survey.id] = submission.id
    session.modified = True