def record_agreement_to_terms(user_id):
 user_settings = get_user_settings(user_id, strict=True)
 user_settings.last_agreed_to_terms = datetime.datetime.utcnow()
 _save_user_settings(user_settings)

def record_agreement_to_terms ( user_id ) : user_settings = get_user_settings ( user_id , strict = True ) user_settings . last_agreed_to_terms = datetime . datetime . utcnow ( ) _save_user_settings ( user_settings )
records that the user with given user_id has agreed to the license terms .