gtalarico / pyairtable

Python Api Client for Airtable
https://pyairtable.readthedocs.io
MIT License
786 stars 139 forks source link

Correct pyairtable.formulas.match match_any documentation #219

Closed jackklika closed 1 year ago

jackklika commented 1 year ago

The match documentation is incorrect for how the match_any argument changes the computed string expression.

In the pyairtable.formulas.match documentation:

    Usage:
        >>> match({"First Name": "John", "Age": 21})
        "AND({First Name}='John',{Age}=21)"
        >>> match({"First Name": "John", "Age": 21}, match_any=True)
        "AND({First Name}='John',{Age}=21)"  <<< Incorrect, should be OR

In my python REPL:

>>> match({"First Name": "John", "Age": 21})
"AND({First Name}='John',{Age}=21)"
>>> match({"First Name": "John", "Age": 21}, match_any=True)
"OR({First Name}='John',{Age}=21)"
gtalarico commented 1 year ago

Thank you!