Skip to content

Commit

Permalink
fix: param NoProductProfile doesn't work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
salvadorbs committed Nov 27, 2023
1 parent 0dbb48e commit be95d7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/kernel.application.pas
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function TLidlToGrocy.AddNewGrocyProduct(LidlProduct: TItemsLine): TGrocyProduct
try
TLogger.Info('Insert product %s in Grocy', [OFFProductInfo.ProductName]);

if (NoProductPicture) then
if not (NoProductPicture) then
InsertOFFImageInGrocy(OFFProductInfo);

GrocyProduct := FGrocyService.CreateProduct(OFFProductInfo);
Expand Down
2 changes: 1 addition & 1 deletion service/grocy.service.pas
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function TGrocyService.CreateGrocyProduct(const OFFProductInfo: TOFFProductInfo)
GrocyProduct.DefaultSetup();

GrocyProduct.Name := OFFProductInfo.ProductName;
if (OFFProductInfo.Code <> '') then
if (OFFProductInfo.ImageUrl <> '') then
GrocyProduct.PictureFileName := OFFProductInfo.Code + '.jpg';

with FConfiguration do
Expand Down

0 comments on commit be95d7c

Please sign in to comment.