def METHOD_NAME(email):
	assert type(email) == str
	ret = EmailSubscription.query.filter_by(email=email).first()
	if not ret:
		ret = EmailSubscription(email)
		ret.token = random_string(32)
		db.session.add(ret)
		db.session.commit()
	return ret