Fix photos taken in the current year are included in memories

This commit is contained in:
Ming Ming 2024-06-02 01:55:58 +08:00
parent d811e626e3
commit 29383658f4

View file

@ -734,6 +734,8 @@ extension SqliteDbFileExtension on SqliteDb {
} else {
query.where(files.isCollection.isNotValue(true));
}
query.where(accountFiles.bestDateTime
.isSmallerThanValue(at.add(month: -11).toLocalDateTime()));
Expression<bool>? dateExp;
for (final d in dates) {
final thisExp = localTimeColumn.month.equals(d.month) &