Skip to content

Commit

Permalink
Update BL API calls to always send the description.
Browse files Browse the repository at this point in the history
After Bricklink made changes on Feb 1st 2024 we need to always update the description field in API calls even if it is the same as before.
  • Loading branch information
ZZJHONS authored Feb 2, 2024
1 parent 2ae5c7b commit 810de3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bsapplydiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,15 @@ static void bsBrickLinkApplyDiffUpdate( bsContext *context, bsxItem *item, int i
if( !( item->flags & BSX_ITEM_XFLAGS_UPDATE_STOCKROOM ) )
ccGrowthPrintf( &postgrowth, ",\"is_stock_room\":false" );
}
/* In JSON, we need to escape the chars '"' and '\' */
if( item->flags & BSX_ITEM_XFLAGS_UPDATE_COMMENTS )
{
/* In JSON, we need to escape the chars '"' and '\' | After Bricklink made changes on Feb 1st 2024 we need to always update the comment field in API calls even if it is the same as before. */
// if( item->flags & BSX_ITEM_XFLAGS_UPDATE_COMMENTS )
// {
encodedstring = 0;
if( item->comments )
encodedstring = jsonEncodeEscapeString( item->comments, strlen( item->comments ), 0 );
ccGrowthPrintf( &postgrowth, ",\"description\":\"%s\"", ( encodedstring ? encodedstring : "" ) );
free( encodedstring );
}
// }
if( item->flags & BSX_ITEM_XFLAGS_UPDATE_REMARKS )
{
encodedstring = 0;
Expand Down

1 comment on commit 810de3b

@RedWolves
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome thanks for being on top of this and pushing out a release. Put yourself down for a raise!!!!

Please sign in to comment.