-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update post-transform methods to handle None values (#147)
Why these changes are being introduced: * When a field method returns "None", the resulting "fields" dictionary will set a key-value pair, where key = <field_name> and value = None. This will result in the .setdefault() method being ignored during the post-transform methods as it will only set the value in the "fields" dictionary to an empty list if the key is not present. How this addresses that need: * Check if field methods that are updated by post-transform methods are already set to None. If None, set to an empty list. Side effects of this change: * None Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/GDT-217 * https://mitlibraries.atlassian.net/browse/GDT-210
- Loading branch information
1 parent
a019673
commit dd2c4ac
Showing
2 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters