From c3f7cd5ac7569ee070cb5b6ee00960bb1c6597b5 Mon Sep 17 00:00:00 2001 From: 0x01fe Date: Thu, 11 Jul 2024 15:35:23 -0500 Subject: [PATCH] forgot to remove the endpoint --- app/app.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/app/app.py b/app/app.py index 037de4f..cc8af15 100644 --- a/app/app.py +++ b/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) -@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 @app.route('/about/') def about():