diff --git a/app/app.py b/app/app.py index dd6b9b8..b9a7f64 100755 --- a/app/app.py +++ b/app/app.py @@ -175,7 +175,7 @@ def front_page(): hidden = ? AND saved = ? ORDER BY - score desc + created_utc asc LIMIT ? """ binds = [False, False, config.posts_per_page_load] @@ -217,7 +217,7 @@ def other_page(): count <= ? ) ORDER BY - score desc + created_utc asc LIMIT ? """ binds = [False, False, False, config.other_posts_cutoff, config.posts_per_page_load] @@ -264,7 +264,7 @@ def get_subreddit(subreddit): hidden = ? AND saved = ? ORDER BY - score desc + created_utc asc LIMIT ? """ binds = [subreddit, False, False, config.posts_per_page_load] diff --git a/app/config.py b/app/config.py index 5572aac..dc228a0 100644 --- a/app/config.py +++ b/app/config.py @@ -4,7 +4,7 @@ max_age_seconds = max_age_days * 24 * 60 * 60 other_posts_cutoff = 4 #subreddits with this many unread posts or fewer are merged to /r/other # Webpage configuration -posts_per_page_load = 25 +posts_per_page_load = 10 db_dir = "/reddit/db" media_dir = "/reddit/media" diff --git a/app/templates/index.html b/app/templates/index.html index f8e8cee..b37ec6c 100755 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1,188 +1,222 @@ +
- - -