def search_zip_base(): if validators.valid_zipcode(request.form['zip']): return redirect(url_for('zip', zipcode=request.form['zip'])) else: return redirect(url_for('error_invalid_zip'))
def create_post_listing(): if validators.valid_zipcode(request.form['zip']): return redirect(url_for('zip', zipcode=request.form['zip'])) else: return redirect(url_for('error_invalid_zip'))
def zip(zipcode): if validators.valid_zipcode(zipcode): return render_template("zip.html", zipcode=zipcode) else: return redirect(url_for('error_invalid_zip'))