From 5c6ce5e1d78d46d244a15ab225065351a98aa40a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 1 Jul 2022 14:09:41 +0200 Subject: [PATCH] try to figure out what caused bandwidth spike --- files/routes/posts.py | 2 +- ubuntu_setup => ubuntu_setup.sh | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename ubuntu_setup => ubuntu_setup.sh (100%) diff --git a/files/routes/posts.py b/files/routes/posts.py index ac5b0010d..522c4c609 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -170,7 +170,7 @@ def post_id(pid, anything=None, v=None, sub=None): blocked, blocked.c.user_id == Comment.author_id, isouter=True - ) + ).options(joinedload(Comment.flags), joinedload(Comment.awards), joinedload(Comment.author), joinedload(Comment.author, User.badges)) output = [] for c in comments.all(): diff --git a/ubuntu_setup b/ubuntu_setup.sh similarity index 100% rename from ubuntu_setup rename to ubuntu_setup.sh