From 1e4c9eda569d7c040fbef1dbbcc4458739378eea Mon Sep 17 00:00:00 2001 From: katboi01 Date: Fri, 17 Jan 2025 14:12:47 +0100 Subject: [PATCH] constrained download mode for accounts list --- modules/Archive/database.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/Archive/database.py b/modules/Archive/database.py index e719615..432812a 100644 --- a/modules/Archive/database.py +++ b/modules/Archive/database.py @@ -62,9 +62,10 @@ class Database: SUM(IIF(x_posts.action_taken = 2, 1, 0)) as deleted, SUM(IIF(x_posts.action_taken = 3, 1, 0)) as hidden, SUM(IIF(x_post_details.id is NULL, 1, 0)) as invalid -FROM x_posts - LEFT JOIN accounts on accounts.id = x_posts.account_id +FROM accounts + LEFT JOIN x_posts on accounts.id = x_posts.account_id LEFT JOIN x_post_details on x_post_details.id = x_posts.id +WHERE accounts.download_mode != 4 GROUP BY account_id ORDER BY x_handle''' return self.db.run_query(query)