-
-
Save jdyke/bfc841c082c6adaebcadf37fd364bc6d to your computer and use it in GitHub Desktop.
massage
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
def massage(key_data): | |
if key_data.get("apiTargetKeyDetails"): | |
targets = [] | |
for target in key_data["apiTargetKeyDetails"]["apiTargets"].keys(): | |
targets.append(target) | |
key_data["apiTargetKeyDetails"] = ",".join(targets) | |
return key_data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment