Permalink
Browse files

updated gitignore

  • Loading branch information...
1 parent 755aaad commit ea1b3279f35f2f8571e8266d38f40dea14aba877 Daria Jung committed Sep 30, 2012
Showing with 0 additions and 23 deletions.
  1. +0 −23 babies.py~
View
@@ -1,23 +0,0 @@
-from flask import Flask, request, redirect, url_for
-import os
-from flask import render_template
-import search
-app = Flask(__name__)
-
-@app.route('/')
-def index():
- spermcount = search.searching("Justin Bieber")
- return render_template('index.html')
-
-app.route('/',methods=['GET','POST'])
-def print_form():
- if request.method == 'POST':
- return render_template('form.html')
- if request.method == 'GET':
- print render_template('form.html',result=request.form['spermcount'])
- return render_template('form.html',result=request.form['spermcount'])
-
-
-if __name__ == '__main__':
- port = int(os.environ.get('PORT', 5000))
- app.run(host='0.0.0.0', port=port)

0 comments on commit ea1b327

Please sign in to comment.