From e484a4ecd182d806d004a0b5b9116683bc07217e Mon Sep 17 00:00:00 2001 From: jwansek Date: Sun, 3 Sep 2023 20:57:35 +0100 Subject: Added local nitter instance, fixed twitter caching using new method --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app.py') diff --git a/app.py b/app.py index 81cfad9..1be6e76 100755 --- a/app.py +++ b/app.py @@ -71,7 +71,7 @@ def index(): 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(since = datetime.datetime.now() - datetime.timedelta(days = 7)), + commits = db.get_cached_commits()[:7], sidebar_img = get_sidebar_img(db) ) @@ -85,7 +85,8 @@ def diary(): return flask.render_template( "diary.html.j2", **get_template_items("diary", db), - diary = db.get_diary() + diary = db.get_diary(), + diary_account = db.config.get("twitter", "diary_account") ) @app.route("/discord") -- cgit v1.2.3