Skip to content

Compare values and update only when different from previous #597

Closed Answered by LeMyst
lubianat asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @lubianat ,

I can't test right now, but when you say the comparison didn't work, it's always true or false?
You didn't precise how you create the old_item and new_item, but if you did simply a copy, you may need to you the deepcopy function from the copy package.
Otherwise you can try to compare the JSON object from each item (but you need a deepcopy too)

I hope that can help you,

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by LeMyst
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #596 on July 15, 2023 16:26.