Skip to content

Commit

Permalink
application.py: add static urls for oops & index css; return index pa…
Browse files Browse the repository at this point in the history
…ge in root route
  • Loading branch information
sommersoft committed May 25, 2020
1 parent 19db0e5 commit a2a4f02
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions application.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
with app.test_request_context():
url_for('static', filename='physaci.css')
url_for('static', filename='job_results.css')
url_for('static', filename='oops.css')
url_for('static', filename='index.css')
url_for('static', filename='color_pallet.css')
url_for('static', filename='images/physa_silhouette_two_color.png')
url_for('static', filename='scripts/result_viewer.js')
Expand All @@ -49,7 +51,7 @@ def handle_oopsie(e):

@app.route('/')
def index():
return 'physaCI'
return render_template('index.html')

@app.route('/job')
def job_result():
Expand All @@ -74,7 +76,3 @@ def job_result():
abort(job_data.status_code, description=description)
else:
abort(500)




0 comments on commit a2a4f02

Please sign in to comment.