feat: remove the last traces of the csv

This commit is contained in:
silver 2023-10-27 01:46:42 +01:00
parent 68c6894727
commit 88f9e8d744
4 changed files with 0 additions and 31 deletions

22
Cargo.lock generated
View file

@ -540,27 +540,6 @@ dependencies = [
"subtle", "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]] [[package]]
name = "ctr" name = "ctr"
version = "0.6.0" version = "0.6.0"
@ -2418,7 +2397,6 @@ name = "skynet_discord_bot"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"chrono", "chrono",
"csv",
"dotenvy", "dotenvy",
"lettre", "lettre",
"maud", "maud",

View file

@ -29,9 +29,6 @@ rand = "0.8.5"
# fancy time stuff # fancy time stuff
chrono = "0.4.26" chrono = "0.4.26"
# handlign teh csv export from wolves
csv = "1.2"
# for email # for email
lettre = "0.10.4" lettre = "0.10.4"
maud = "0.25.0" maud = "0.25.0"

View file

@ -50,7 +50,6 @@
SKYNET_SERVER = cfg.discord.server; SKYNET_SERVER = cfg.discord.server;
HOME = cfg.home; HOME = cfg.home;
DATABASE = "database.db"; DATABASE = "database.db";
CSV = "wolves.csv";
}; };
service_name = script: lib.strings.sanitizeDerivationName("${cfg.user}@${script}"); service_name = script: lib.strings.sanitizeDerivationName("${cfg.user}@${script}");

View file

@ -23,7 +23,6 @@ pub struct Config {
pub ldap_api: String, pub ldap_api: String,
pub home: String, pub home: String,
pub database: String, pub database: String,
pub csv: String,
pub auth: String, pub auth: String,
pub discord_token: String, pub discord_token: String,
@ -55,7 +54,6 @@ pub fn get_config() -> Config {
home: ".".to_string(), home: ".".to_string(),
database: "database.db".to_string(), database: "database.db".to_string(),
csv: "wolves.csv".to_string(),
mail_smtp: "".to_string(), mail_smtp: "".to_string(),
mail_user: "".to_string(), mail_user: "".to_string(),
@ -75,9 +73,6 @@ pub fn get_config() -> Config {
if let Ok(x) = env::var("DATABASE") { if let Ok(x) = env::var("DATABASE") {
config.database = x.trim().to_string(); 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") { if let Ok(x) = env::var("LDAP_DISCORD_AUTH") {
config.auth = x.trim().to_string(); config.auth = x.trim().to_string();