From 66545efa4462578abdcc446be856fa6bb2c2be97 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 5 Feb 2022 15:49:54 +0200 Subject: [PATCH] fsd --- env => env.sh | 2 +- files/routes/front.py | 6 +++--- readme.md | 2 +- setup => ubuntu_setup | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename env => env.sh (97%) rename setup => ubuntu_setup (100%) diff --git a/env b/env.sh similarity index 97% rename from env rename to env.sh index 8c4b8a59e..5f75c2e03 100644 --- a/env +++ b/env.sh @@ -32,4 +32,4 @@ export MAIL_USERNAME="blahblahblah@gmail.com" export MAIL_PASSWORD="3435tdfsdudebussylmaoxxt43" export DESCRIPTION="rdrama.net caters to drama in all forms such as: Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyond™. There isn't drama we won't touch, and we want it all!" export CF_KEY="3435tdfsdudebussylmaoxxt43" -export CF_ZONE="3435tdfsdudebussylmaoxxt43" +export CF_ZONE="3435tdfsdudebussylmaoxxt43" \ No newline at end of file diff --git a/files/routes/front.py b/files/routes/front.py index c266bd7da..e774df199 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -72,10 +72,10 @@ def notifications(v): Comment.is_banned == False, Comment.deleted_utc == 0, Comment.author_id != AUTOJANNY_ID, - ).order_by(Notification.id.desc()).offset(25 * (page - 1)).limit(26).all() + ).order_by(Notification.id.desc()).offset(50 * (page - 1)).limit(51).all() - next_exists = (len(notifications) > 25) - notifications = notifications[:25] + next_exists = (len(notifications) > 50) + notifications = notifications[:50] cids = [x.comment_id for x in notifications] comments = get_comments(cids, v=v, load_parent=True) diff --git a/readme.md b/readme.md index 5f57885cf..807c9e7e6 100644 --- a/readme.md +++ b/readme.md @@ -24,4 +24,4 @@ docker-compose up 3- That's it! Visit `localhost` in your browser. -4- Optional: to change the domain from "localhost" to something else and configure the site settings, as well as integrate it with the external services the website uses, please edit the variables in the docker-compose.yml file and then restart the docker container from inside the docker app. +4- Optional: to change the domain from "localhost" to something else and configure the site settings, as well as integrate it with the external services the website uses, please edit the variables in the `env` file and then restart the docker container. \ No newline at end of file diff --git a/setup b/ubuntu_setup similarity index 100% rename from setup rename to ubuntu_setup