summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/schedule.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/schedule.rs b/src/schedule.rs
index c6836cc..c39875f 100644
--- a/src/schedule.rs
+++ b/src/schedule.rs
@@ -165,7 +165,13 @@ pub async fn render_markdown(schedule: &MarkdownMap) {
lines.push_str(&format!("{day}\n\n"));
- for line in schedule.get(&day).unwrap() {
+ for line in schedule
+ .iter()
+ .map(|(k, v)| (k.to_lowercase(), v.clone()))
+ .collect::<MarkdownMap>()
+ .get(&day.to_lowercase())
+ .unwrap()
+ {
lines.push_str(line);
lines.push('\n');
}