Publish container to ghcr.io (#101)

This commit is contained in:
DG
2021-08-21 14:21:38 -04:00
committed by GitHub
parent b8325d72fc
commit e061b506d1
6 changed files with 54 additions and 27 deletions

View File

@@ -59,7 +59,7 @@ pub async fn get_topic(topic_id: u32) -> Result<String, Box<dyn std::error::Erro
}
pub fn parse_hot_deals(response: &str) -> Deals {
serde_json::from_str(&response).unwrap()
serde_json::from_str(response).unwrap()
}
pub fn parse_posts(response: String) -> Posts {
@@ -89,7 +89,7 @@ pub fn match_deals(deals: Deals, config: Config, dbpath: &str) {
)
} else if topic.offer.dealer_name.is_some() {
let dealer_name = topic.offer.dealer_name.as_ref().unwrap();
if re.is_match(&dealer_name) {
if re.is_match(dealer_name) {
found_match = true;
info!(
"Expression '{}' matched dealer: {}",