Skip to content

Commit 75619bf

Browse files
committed
work on newest blog post
1 parent 6d7cc22 commit 75619bf

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

content/posts/170524-bar-charts-bokeh.markdown

+2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ app = Flask(__name__)
108108

109109
@app.route("/<int:bars_count>/")
110110
def chart(bars_count):
111+
if bars_count <= 0:
112+
bars_count = 1
111113
return render_template("chart.html", bars_count=bars_count)
112114

113115

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="refresh" content="0; url=https://www.fullstackpython.com/blog/bar-charts-bokeh-flask-python-3.html">
5+
</head>
6+
<body>
7+
</body>
8+
</html>

0 commit comments

Comments
 (0)