Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/server/handlers/shopping_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ pub async fn shopping_list(
None
};

// Use common names from aisle configuration
list = list.use_common_names(&aisle, PARSER.converter());

// Track pantry items that were found and subtracted (excluding zero quantities)
let mut pantry_items = Vec::new();
if let Some(ref pantry) = pantry_conf {
Expand Down
3 changes: 3 additions & 0 deletions src/shopping_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ pub fn run(ctx: &Context, args: ShoppingListArgs) -> Result<()> {
)?;
}

// Use common names from aisle configuration
list = list.use_common_names(&aisle, PARSER.converter());

// Subtract pantry quantities from shopping list
if let Some(pantry_conf) = &pantry {
list = list.subtract_pantry(pantry_conf, PARSER.converter());
Expand Down
Loading