Don't show unapproved files in new filescan
This commit is contained in:
parent
d7ed1d1619
commit
8c7c432dd4
@ -1205,7 +1205,7 @@ void file_scan() {
|
|||||||
int i;
|
int i;
|
||||||
int j;
|
int j;
|
||||||
char buffer[PATH_MAX];
|
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;
|
int rc;
|
||||||
sqlite3 *db;
|
sqlite3 *db;
|
||||||
sqlite3_stmt *res;
|
sqlite3_stmt *res;
|
||||||
|
Reference in New Issue
Block a user