mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-26 11:36:20 +00:00
warcificator: seguir limpiando
This commit is contained in:
parent
1abd98724d
commit
78878d8b7e
1 changed files with 4 additions and 6 deletions
|
@ -1,11 +1,9 @@
|
||||||
use async_channel::{Receiver, Sender};
|
use async_channel::{Receiver, Sender};
|
||||||
use rusqlite::Connection;
|
use rusqlite::Connection;
|
||||||
use serde::de::value;
|
|
||||||
use std::{
|
use std::{
|
||||||
borrow::Cow,
|
borrow::Cow,
|
||||||
env::{self, args},
|
env::{self, args},
|
||||||
fs,
|
fs,
|
||||||
ops::Deref,
|
|
||||||
time::{SystemTime, UNIX_EPOCH},
|
time::{SystemTime, UNIX_EPOCH},
|
||||||
};
|
};
|
||||||
use tl::VDom;
|
use tl::VDom;
|
||||||
|
@ -239,14 +237,14 @@ fn parse_carrefour(url: String, dom: &tl::VDom) -> Result<PrecioPoint, FetchErro
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(PrecioPoint {
|
Ok(PrecioPoint {
|
||||||
ean: ean,
|
ean,
|
||||||
fetched_at: now_sec(),
|
fetched_at: now_sec(),
|
||||||
in_stock: in_stock,
|
in_stock,
|
||||||
name: None,
|
name: None,
|
||||||
image_url: None,
|
image_url: None,
|
||||||
parser_version: 5,
|
parser_version: 5,
|
||||||
precio_centavos: precio_centavos,
|
precio_centavos,
|
||||||
url: url,
|
url,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue