-
Hi!
This comparison, however, is not working. I want to implement that ifelse statement to avoid talking to the server whenever I don't have anything new to write. Any thoughts? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hello @lubianat , I can't test right now, but when you say the comparison didn't work, it's always true or false? I hope that can help you, |
Beta Was this translation helpful? Give feedback.
-
@LeMyst it is always true; I create the item by
maybe the json is the way |
Beta Was this translation helpful? Give feedback.
-
You can try the |
Beta Was this translation helpful? Give feedback.
-
the json trick worked, thanks! This one should work too. |
Beta Was this translation helpful? Give feedback.
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,