diff --git a/src/data_backend/stuwe_parser.rs b/src/data_backend/stuwe_parser.rs index 6a2469c..18b6c2e 100644 --- a/src/data_backend/stuwe_parser.rs +++ b/src/data_backend/stuwe_parser.rs @@ -125,7 +125,9 @@ fn mealgroups_to_msg(meal_groups: &[MealGroup], wants_allergens: bool) -> String // loop over meals in meal group for sub_meal in &meal_group.sub_meals { // underlined single or multiple meal name - msg += &format!(" • {}\n", markdown::underline(&sub_meal.name)); + if !(meal_group.sub_meals.len() == 1 && sub_meal.name == meal_group.meal_type) { + msg += &format!(" • {}\n", markdown::underline(&sub_meal.name)); + } // loop over ingredients of meal for ingredient in &sub_meal.additional_ingredients { diff --git a/src/shared_main.rs b/src/shared_main.rs index 126e86b..237e756 100644 --- a/src/shared_main.rs +++ b/src/shared_main.rs @@ -59,13 +59,11 @@ pub fn make_mensa_keyboard( &mensa.1 ), )]); - // } } InlineKeyboardMarkup::new(keyboard) } pub fn make_commands_keyrow() -> KeyboardMarkup { - // let req = ButtonRequest:: let keyboard = vec![ vec![ KeyboardButton::new("/heute"),