Don't exclude raw images from findsizes.

This commit is contained in:
Rasmus Kaj 2019-05-18 15:27:52 +02:00
parent 770ef9bdae
commit f130f16827

View File

@ -76,7 +76,7 @@ impl FindSizes {
let start = Instant::now(); let start = Instant::now();
let mut c = 0; let mut c = 0;
while start.elapsed().as_secs() < 5 { while start.elapsed().as_secs() < 5 {
let photos = Photo::query(true) let photos = p::photos
.filter(p::width.is_null()) .filter(p::width.is_null())
.filter(p::height.is_null()) .filter(p::height.is_null())
.order((p::is_public.desc(), p::date.desc().nulls_last())) .order((p::is_public.desc(), p::date.desc().nulls_last()))