Advanced

Re: Possibility to filter in GetFinds by the amount of FP

Possibility to filter in GetFinds by the amount of FP
October 15, 2016 01:43PM
Would it be possible to add a possibility to filter caches in GetFinds by the amount of FP awarded to to this cache? It would simplify the creation of the checker below (would need slight modification of existing, instead of writing a new one). I believe it would be also useful for different checkers handling favorites. Using filter is more effective than filtering afterwards.

http://project-gc.com/forum/read?8,2759
Re: Possibility to filter in GetFinds by the amount of FP
October 15, 2016 02:46PM
Is it necessary? It is trivial to filter for that in lua.
check if fp filter is set
create a new table.
loop over all find and add all caches with fp>10 to the table.
set the old table to the new table.
And the existing checker would be unaffected by that change.



Edited 1 time(s). Last edit at 10/15/2016 02:47PM by Target.. (view changes)
Re: Possibility to filter in GetFinds by the amount of FP
October 16, 2016 08:32PM
Well ... you are right. It is nothing that can't be worked around, but my initial though was that extension of API would bring more flexibility, less of copy-paste code throughout a lot of checkers and finally lower amount of data transferred back and forth.
But if this is not a problem anymore, I don't mind solving these request your explained way.
Re: Possibility to filter in GetFinds by the amount of FP
February 14, 2017 01:45PM
I will gladly add this filter. Remind me if it's not done in a week. I will do it together with some other updates (a post on the forum coming soon).
Re: Possibility to filter in GetFinds by the amount of FP
February 14, 2017 02:09PM
This has been implemented now, though not tested yet.

The release will wait upon http://project-gc.com/forum/read?5,4168 since it's in the same commit.
Sorry, you do not have permission to post/reply in this forum.