Skip to content

Commit

Permalink
Fixed bug that added trailing underscores if a column name had whites…
Browse files Browse the repository at this point in the history
…pace at end of name
  • Loading branch information
torstees committed Jan 29, 2024
1 parent b350b57 commit 4a4c987
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wstlr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def clean_values(valuestring):
def fix_fieldname(fieldname):
return (
fieldname.lower()
.strip()
.replace(" ", "_")
.replace(")", "")
.replace("(", "")
Expand Down

0 comments on commit 4a4c987

Please sign in to comment.