~misterio/sistemer-bot

839d59034fb0be153c17b91f15272176a076b68d — Gabriel Fontes 2 years ago 0f3a119 1.1.1
permite encontrar materias por outros atributos
4 files changed, 4 insertions(+), 4 deletions(-)

M Cargo.lock
M Cargo.nix
M Cargo.toml
M src/disciplina.rs
M Cargo.lock => Cargo.lock +1 -1
@@ 1135,7 1135,7 @@ dependencies = [

[[package]]
name = "sistemer-bot"
version = "1.1.0"
version = "1.1.1"
dependencies = [
 "anyhow",
 "chrono",

M Cargo.nix => Cargo.nix +1 -1
@@ 3146,7 3146,7 @@ rec {
      };
      "sistemer-bot" = rec {
        crateName = "sistemer-bot";
        version = "1.1.0";
        version = "1.1.1";
        edition = "2018";
        crateBin = [
          { name = "sistemer-bot"; path = "src/main.rs"; }

M Cargo.toml => Cargo.toml +1 -1
@@ 1,6 1,6 @@
[package]
name = "sistemer-bot"
version = "1.1.0"
version = "1.1.1"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

M src/disciplina.rs => src/disciplina.rs +1 -1
@@ 7,7 7,7 @@ pub async fn get_disciplina(disciplina: &str) -> Result<String> {
        .text()
        .await?;

    let start_pattern = Regex::new(&format!("<h2.*>.*{}.*</h2>", disciplina.to_lowercase()))?;
    let start_pattern = Regex::new(&format!("<h2.*{}.*</h2>", disciplina.to_lowercase()))?;
    let stop_pattern = Regex::new("<hr />")?;

    let mut output: String = "".into();