Pipeline: Fetch sources without etag support fist as they are more likely to need parsing.

This commit is contained in:
Jordan Petridis 2018-01-29 12:20:21 +02:00
parent 332a439b7a
commit b1c3b4f9cc
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -16,7 +16,10 @@ pub fn get_sources() -> Result<Vec<Source>> {
let db = connection();
let con = db.get()?;
source.load::<Source>(&con).map_err(From::from)
source
.order((http_etag.asc(), last_modified.asc()))
.load::<Source>(&con)
.map_err(From::from)
}
pub fn get_podcasts() -> Result<Vec<Podcast>> {