aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2023-09-03 20:57:35 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2023-09-03 20:57:35 +0100
commite484a4ecd182d806d004a0b5b9116683bc07217e (patch)
treeedc225a17aaf7dc93000b9046c92656009a3de57 /app.py
parentc4ab716c20729a62f7b78b60029c27e0f166f41c (diff)
downloadeda.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-xapp.py5
1 files changed, 3 insertions, 2 deletions
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")