Skip to content

Commit

Permalink
Tackling comments issues + tests
Browse files Browse the repository at this point in the history
  • Loading branch information
very-smartin committed Jan 9, 2025
1 parent b5f7a81 commit a5f4f1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/ProductOpener/EnvironmentalImpact.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ProductOpener::EnvironmentalImpact - process and analyze products
=head1 SYNOPSIS
C<ProductOpener::EnvironmentalImpact> processes products to compute
their environmental impact (see french ecolabelling Ecobalyse).
their environmental impact (see french eco-labeling Ecobalyse).
use ProductOpener::EnvironmentalImpact qw/:all/;
Expand Down Expand Up @@ -62,7 +62,7 @@ use vars @EXPORT_OK;
=head2 estimate_environmental_impact_service ( $product_ref, $updated_product_fields_ref, $errors_ref )
Compute the environemental cost of a given product (see the french environmental labelling Ecobalyse).
Compute the environmental impact of a given product (see the french environmental eco-labeling Ecobalyse).
This function is a product service that can be run through ProductOpener::ApiProductServices
Expand Down Expand Up @@ -175,7 +175,7 @@ sub estimate_environmental_impact_service ($product_ref, $updated_product_fields

# Vérifier si ecs existe et le stocker dans le champ de produit
if (defined $ecs_value) {
$product_ref->{ecs} = $ecs_value;
$product_ref->{environmental_impact} = $ecs_value;
$log->debug("ecs value stored", {ecs => $product_ref->{ecs}}) if $log->is_debug();
}
else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"errors" : [],
"fields" : [
"estimate_environmental_impact_service"
"environmental_impact"
],
"product" : {
"estimate_environmental_impact_service" : 5
"environmental_impact" : 5
},
"services" : [
"echo"
Expand Down

0 comments on commit a5f4f1c

Please sign in to comment.