Fix query for oldest (un-swapped) project

This commit is contained in:
Shane Kilkelly 2021-07-01 14:57:58 +01:00
parent 9170f6fdb3
commit 49aa2ef845

View file

@ -12,7 +12,8 @@ public class GetOldestProjectName implements SQLQuery<String> {
private static final String GET_OLDEST_PROJECT_NAME =
"SELECT `name`, MIN(`last_accessed`)\n" +
" FROM `projects`";
" FROM `projects` \n" +
" WHERE `last_accessed` IS NOT NULL;";
@Override
public String getSQL() {