From 8c7c432dd40f63173bb75abc4ed65e5e75adbfda Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 28 Sep 2017 19:16:59 +1000 Subject: [PATCH] Don't show unapproved files in new filescan --- src/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files.c b/src/files.c index f811335..7c0dcff 100644 --- a/src/files.c +++ b/src/files.c @@ -1205,7 +1205,7 @@ void file_scan() { int i; int j; char buffer[PATH_MAX]; - char sql[] = "SELECT COUNT(*) FROM files WHERE uploaddate > ?"; + char sql[] = "SELECT COUNT(*) FROM files WHERE uploaddate > ? AND approved=1"; int rc; sqlite3 *db; sqlite3_stmt *res;