Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculations #6

Open
YuriGal opened this issue Sep 11, 2024 · 4 comments
Open

Calculations #6

YuriGal opened this issue Sep 11, 2024 · 4 comments

Comments

@YuriGal
Copy link

YuriGal commented Sep 11, 2024

Would it be possible to add filters by simple math, e.g. "Remove if reply_numbers/like_numbers < 2" ?

@Invertex
Copy link

You can already do this, the Remove node has options for that, including greater or less-than. Add multiple Remove nodes to do Reply and Likes.

@YuriGal
Copy link
Author

YuriGal commented Oct 24, 2024

This is what I currently do, I have a block that removes posts with replies < 100, and remove posts where likes > 50, and it sort of works, but is there a way to refine this?

@Invertex
Copy link

What about it isn't working? Those two blocks, one after the other, should do what you're asking...

Stash and Pop nodes can be used to store some result and hold onto it while you filter other stuff is another option to further control.

@YuriGal
Copy link
Author

YuriGal commented Oct 25, 2024

Because the conditions are independent, there could be a situation where, say post gains 200 replies and 51 likes. It should remain in the feed because the ratio is only ~ 4 (and the threshold is < 2), but it will be removed because number of likes is treated as an independent remove block.
I should probably play with stash/pop to see if I can use several conditions pairs to more granular filtering, thanks for the suggetion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants