mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-26 03:26:19 +00:00
Compare commits
2 commits
9fdc384005
...
918efeab4f
Author | SHA1 | Date | |
---|---|---|---|
918efeab4f | |||
6d32c897ac |
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,8 @@ use crate::db::Db;
|
|||
use crate::scraper::Scraper;
|
||||
use futures::Future;
|
||||
use preciazo::supermercado::Supermercado;
|
||||
use rand::seq::SliceRandom;
|
||||
use rand::thread_rng;
|
||||
use reqwest::Url;
|
||||
|
||||
#[derive(Clone)]
|
||||
|
@ -48,6 +50,7 @@ impl Auto {
|
|||
if let Some(n) = self.args.n_products {
|
||||
links.truncate(n);
|
||||
}
|
||||
links.shuffle(&mut thread_rng());
|
||||
links
|
||||
};
|
||||
// {
|
||||
|
|
Loading…
Reference in a new issue