Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed changing field values via the complex_variant option #199

Merged

Conversation

set-soft
Copy link
Contributor

@set-soft set-soft commented Jan 2, 2024

This is just a "backport" of the INTI-CMNB#23 PR by @PatrickBaus

Replacing field values using the complex_variant = True option is not case sensitive.

If the field name to be replaced contains uppercase letters, the comparison will fail because of the following code

if field.get('field', 'name') == name:

The first part of the comparison may contain uppercase letters. The latter part is typically lower case, but for safety reasons, I apply lower() as well. This PR contains the fix and also squashes some trailing white spaces.

… case sensitive.

If the field name to be replaced contains uppercase letters, the comparison will fail because of the following code

if field.get('field', 'name') == name:

The first part of the comparison may contain uppercase letters. The latter part is typically lower case, but for safety reasons, I apply lower() as well. This PR contains the fix and also squashes some trailing white spaces.
@SchrodingersGat SchrodingersGat merged commit 6a53771 into SchrodingersGat:master Jan 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants