forgot to remove the endpoint
This commit is contained in:
parent
9cdd5f3da4
commit
c3f7cd5ac7
21
app/app.py
21
app/app.py
@ -231,27 +231,6 @@ def programming():
|
|||||||
|
|
||||||
return flask.render_template('programming.html', posts=posts_and_comments, form=form, user=user, status=status)
|
return flask.render_template('programming.html', posts=posts_and_comments, form=form, user=user, status=status)
|
||||||
|
|
||||||
@app.route('/writing/')
|
|
||||||
def writing():
|
|
||||||
|
|
||||||
works = []
|
|
||||||
|
|
||||||
# Get all works in writing folder
|
|
||||||
files = glob.glob(WRITING_FOLDER + '*')
|
|
||||||
|
|
||||||
for path in files:
|
|
||||||
|
|
||||||
date: str = datetime.datetime.fromtimestamp(os.path.getctime(path)).strftime("%B %d, %Y")
|
|
||||||
name: str = path.split('/')[-1]
|
|
||||||
|
|
||||||
works.append({
|
|
||||||
'date' : date,
|
|
||||||
'name' : name,
|
|
||||||
'path' : path
|
|
||||||
})
|
|
||||||
|
|
||||||
return flask.render_template('writing.html', works=works)
|
|
||||||
|
|
||||||
# About Page
|
# About Page
|
||||||
@app.route('/about/')
|
@app.route('/about/')
|
||||||
def about():
|
def about():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user