diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2025-04-07 19:26:36 +0100 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2025-04-07 19:26:36 +0100 |
commit | de57b6fd929b7ce1a93db6442d01321786ccc9b6 (patch) | |
tree | fb7dfbba2c41a23bc079da50ac219b56fd6329ce /app.py | |
parent | 9c52a729744fc2d3e42cfc521376b741a0db3fa0 (diff) | |
download | eda.gay-de57b6fd929b7ce1a93db6442d01321786ccc9b6.tar.gz eda.gay-de57b6fd929b7ce1a93db6442d01321786ccc9b6.zip |
General housekeeping, removed some defunct features
Diffstat (limited to 'app.py')
-rwxr-xr-x | app.py | 25 |
1 files changed, 1 insertions, 24 deletions
@@ -70,7 +70,6 @@ def index(): **get_template_items("eden's site :3", db), markdown = parser.parse_text(f.read())[0], featured_thoughts = db.get_featured_thoughts(), - tweets = db.get_cached_tweets(7) + [("view all tweets...", db.get_my_twitter())], commits = db.get_cached_commits()[:7], sidebar_img = get_sidebar_img(db) ) @@ -79,16 +78,6 @@ def index(): def robots(): return flask.send_from_directory("static", "robots.txt") -@app.route("/diary") -def diary(): - with database.Database() as db: - return flask.render_template( - "diary.html.j2", - **get_template_items("diary", db), - diary = db.get_diary(), - diary_account = db.config.get("twitter", "diary_account") - ) - @app.route("/discord") def discord(): with database.Database() as db: @@ -98,17 +87,6 @@ def discord(): discord = CONFIG["discord"]["username"] ) -@app.route("/services") -def serve_services(): - with database.Database() as db: - return flask.render_template( - "services.html.j2", - **get_template_items("services", db), - docker = services.get_docker_stats(), - trans = services.get_trans_stats(), - pihole = services.get_pihole_stats() - ) - @app.route("/thought") def get_thought(): thought_id = flask.request.args.get("id", type=int) @@ -247,8 +225,7 @@ def serve_questions(): return flask.render_template( "questions.html.j2", **get_template_items("questions and answers", db), - curiouscat_username = db.get_curiouscat_username(), - qnas = db.get_curiouscat_qnas() + qnas = db.get_qnas() ) if __name__ == "__main__": |