1
0
Fork 0
mirror of https://gitlab.com/nkming2/nc-photos.git synced 2025-03-09 16:58:55 +01:00

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) &