diff --git a/.gitignore b/.gitignore
index f8eca56..15782d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
/target
/.idea
plenum_config.sqlite
+.direnv
+shell.nix
\ No newline at end of file
diff --git a/Cargo.toml b/Cargo.toml
index 0c05352..f01c9b3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,12 +4,10 @@ version = "0.1.0"
edition = "2021"
[dependencies]
-#pandoc = "0.8"
-#http = "1.0"
+pandoc = "0.8"
tokio = { version = "1", features = ["full"] }
chrono = "0.4.38"
regex = "1.10.5"
-#mail = "0.7.0"
futures = "0.3.30"
headers = "0.4.0"
reqwest = "0.12.5"
@@ -17,7 +15,4 @@ lettre = "0.11.7"
rand = "0.9.0-alpha.1"
rusqlite = "0.31.0"
uuid = { version = "1.10.0", features = ["v4"] }
-log = "0.4.22"
-#mail-core = "0.6.2"
-#mail-headers = "0.6.6"
-#mail-internals = "0.2.3"
+log = "0.4.22"
\ No newline at end of file
diff --git a/src/main.rs b/src/main.rs
index 6fb9e95..b87176a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -21,6 +21,8 @@ Pad-ins-Wiki-und-versenden-Skript
// Import other .rs files as modules
mod key_value;
+
+use std::borrow::Cow;
use key_value::KeyValueStore as KV;
mod create_new_pads;
pub mod variables_and_settings;
@@ -30,7 +32,8 @@ use regex::{Regex};
use uuid::Uuid;
use reqwest::Client;
use std::error::Error;
-use std::future::Future;
+// use std::future::Future;
+use pandoc;
// use std::process::Command;
// use headers::ContentType;
@@ -45,7 +48,7 @@ use lettre::transport::smtp::authentication::Credentials;
const HEDGEDOC_SERVER_URL: &str = variables_and_settings::HEDGEDOC_SERVER_URL;
const PLENUM_TEMPLATE_URL: &str = variables_and_settings::PLENUM_TEMPLATE_URL;
const FALLBACK_TEMPLATE: &str = variables_and_settings::FALLBACK_TEMPLATE;
-const TESTING_MODE: bool = true;
+const TESTING_MODE: bool = false;
fn kv_defaults (kv: &KV) {
@@ -59,7 +62,8 @@ async fn main() {
// config
let config = KV::new("plenum_config.sqlite").unwrap();
kv_defaults(&config);
-
+ println!("[BEGINNING] Aktuelle Situation der Datenbank: \"current_pad_link\": https://md.berlin.ccc.de/{}, \"zukünftiges-plenumspad\" https://md.berlin.ccc.de/{}", config.get("aktuelles-plenumspad").unwrap().unwrap(), config.get("zukünftiges-plenumspad").unwrap_or_else(|error|Option::from(String::from("error"))).unwrap_or(String::from("error")));
+
// Dienstage diesen Monat
let all_tuesdays: Vec