cityofaustin / knackpy

A Python client for interacting with Knack applications
https://cityofaustin.github.io/knackpy/docs/user-guide/
Other
39 stars 17 forks source link

Unexpected behavior when using `Record.format` #105

Closed johnclary closed 2 years ago

johnclary commented 2 years ago

You can specify the keys and values you want to format with the Record.format method (docs).

formatted = record.format(keys=True, values=["field_1", "field_2"])

This behavior is not consistent when formatting values, due to some unfortunate variable shadowing of key, right here.