Skip to content

Commit

Permalink
Fixed issue #44, removed int() around FlightNum in /on_time_performance.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjurney committed Nov 21, 2017
1 parent aaec4f9 commit 69d6416
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ch04/web/on_time_flask_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def on_time_performance():
flight = client.agile_data_science.on_time_performance.find_one({
'Carrier': carrier,
'FlightDate': flight_date,
'FlightNum': int(flight_num)
'FlightNum': flight_num
})

return render_template('flight.html', flight=flight)
Expand Down
2 changes: 1 addition & 1 deletion ch05/web/chart_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def on_time_performance():
flight = client.agile_data_science.on_time_performance.find_one({
'Carrier': carrier,
'FlightDate': flight_date,
'FlightNum': int(flight_num)
'FlightNum': flight_num
})

return render_template('flight.html', flight=flight)
Expand Down
2 changes: 1 addition & 1 deletion ch06/web/report_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def on_time_performance():
flight = client.agile_data_science.on_time_performance.find_one({
'Carrier': carrier,
'FlightDate': flight_date,
'FlightNum': int(flight_num)
'FlightNum': flight_num
})

return render_template('flight.html', flight=flight)
Expand Down
2 changes: 1 addition & 1 deletion ch08/web/predict_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def on_time_performance():
flight = client.agile_data_science.on_time_performance.find_one({
'Carrier': carrier,
'FlightDate': flight_date,
'FlightNum': int(flight_num)
'FlightNum': flight_num
})

return render_template('flight.html', flight=flight)
Expand Down
2 changes: 1 addition & 1 deletion ch10/web/predict_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def on_time_performance():
flight = client.agile_data_science.on_time_performance.find_one({
'Carrier': carrier,
'FlightDate': flight_date,
'FlightNum': int(flight_num)
'FlightNum': flight_num
})

return render_template('flight.html', flight=flight)
Expand Down

0 comments on commit 69d6416

Please sign in to comment.