def get_last_completed_launch(fw):
    """
    Given a Firework object returns the last completed launch
    """
    return next((l for l in reversed(fw.archived_launches + fw.launches) if
                 l.state == 'COMPLETED'), None)