Don't show unapproved files in new filescan

This commit is contained in:
Andrew Pamment 2017-09-28 19:16:59 +10:00
parent d7ed1d1619
commit 8c7c432dd4

View File

@ -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;