From 88f9e8d7446353fc2317f3ea6fc4f753b24e993e Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Fri, 27 Oct 2023 01:46:42 +0100 Subject: [PATCH] feat: remove the last traces of the csv --- Cargo.lock | 22 ---------------------- Cargo.toml | 3 --- flake.nix | 1 - src/lib.rs | 5 ----- 4 files changed, 31 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 97dd29e..81b0237 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -540,27 +540,6 @@ dependencies = [ "subtle", ] -[[package]] -name = "csv" -version = "1.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "626ae34994d3d8d668f4269922248239db4ae42d538b14c398b74a52208e8086" -dependencies = [ - "csv-core", - "itoa", - "ryu", - "serde", -] - -[[package]] -name = "csv-core" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b2466559f260f48ad25fe6317b3c8dac77b5bdb5763ac7d9d6103530663bc90" -dependencies = [ - "memchr", -] - [[package]] name = "ctr" version = "0.6.0" @@ -2418,7 +2397,6 @@ name = "skynet_discord_bot" version = "0.1.0" dependencies = [ "chrono", - "csv", "dotenvy", "lettre", "maud", diff --git a/Cargo.toml b/Cargo.toml index 3906510..58b3b12 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,9 +29,6 @@ rand = "0.8.5" # fancy time stuff chrono = "0.4.26" -# handlign teh csv export from wolves -csv = "1.2" - # for email lettre = "0.10.4" maud = "0.25.0" diff --git a/flake.nix b/flake.nix index 956c157..e6d6f02 100644 --- a/flake.nix +++ b/flake.nix @@ -50,7 +50,6 @@ SKYNET_SERVER = cfg.discord.server; HOME = cfg.home; DATABASE = "database.db"; - CSV = "wolves.csv"; }; service_name = script: lib.strings.sanitizeDerivationName("${cfg.user}@${script}"); diff --git a/src/lib.rs b/src/lib.rs index cb32a11..24ed4d0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,7 +23,6 @@ pub struct Config { pub ldap_api: String, pub home: String, pub database: String, - pub csv: String, pub auth: String, pub discord_token: String, @@ -55,7 +54,6 @@ pub fn get_config() -> Config { home: ".".to_string(), database: "database.db".to_string(), - csv: "wolves.csv".to_string(), mail_smtp: "".to_string(), mail_user: "".to_string(), @@ -75,9 +73,6 @@ pub fn get_config() -> Config { if let Ok(x) = env::var("DATABASE") { config.database = x.trim().to_string(); } - if let Ok(x) = env::var("CSV") { - config.csv = x.trim().to_string(); - } if let Ok(x) = env::var("LDAP_DISCORD_AUTH") { config.auth = x.trim().to_string();