Advanced

New GetFinds() option

New GetFinds() option
March 07, 2022 09:38AM
I have added a new option to GetFinds(), it's still undocumented, but it's coming.

excludeDupFinds = true can now be set in the second argument of PGC.GetFinds(). It will then remove all duplicate Found logs of the same Geocache, keeping only the first. Sorted by visitdate, log_id. Example:
PGC.GetFinds(12345678, { "excludeDupFinds": true })

This makes it easier to solve issues like this:
https://project-gc.com/forum/read?8,57933,57933#msg-57933

For example in this particular case the script can be updated quite easily to support a tag like the one below. Just add a "excludeDupFinds" = conf.excludeDupFinds to every call of PGC.GetFinds() in the script.
{
    "date_found": {
        "type": "",
        "limit": 1,
        "types": [
            "Traditional Cache"
        ],
        "leapday": "allow",
        "excludeDupFinds": true
    },
    "date_placed": {
        "type": "",
        "limit": 1,
        "types": [
            "Traditional Cache"
        ],
        "leapday": "allow",
        "excludeDupFinds": true
    }
}
Sorry, you do not have permission to post/reply in this forum.