mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Fix photos taken in the current year are included in memories
This commit is contained in:
parent
d811e626e3
commit
29383658f4
1 changed files with 2 additions and 0 deletions
|
@ -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) &
|
||||
|
|
Loading…
Reference in a new issue