diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2023-09-03 20:57:35 +0100 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2023-09-03 20:57:35 +0100 |
commit | e484a4ecd182d806d004a0b5b9116683bc07217e (patch) | |
tree | edc225a17aaf7dc93000b9046c92656009a3de57 /app.py | |
parent | c4ab716c20729a62f7b78b60029c27e0f166f41c (diff) | |
download | eda.gay-e484a4ecd182d806d004a0b5b9116683bc07217e.tar.gz eda.gay-e484a4ecd182d806d004a0b5b9116683bc07217e.zip |
Added local nitter instance, fixed twitter caching using new method
Diffstat (limited to 'app.py')
-rwxr-xr-x | app.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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") |