Skip to content

Commit

Permalink
Merge pull request #1397 from henrykironde/clean-fields
Browse files Browse the repository at this point in the history
Add union, left , right and @ replacement
  • Loading branch information
ethanwhite committed Nov 19, 2019
2 parents b51e2cd + fe9575d commit 2bb2e96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion retriever/lib/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def clean_column_name(self, column_name):
("^", "_power_"),
("<", "_lthn_"),
(">", "_gthn_"),
("@", "_at_"),
]
replace += [(x, '') for x in (")", "?", "#", ";" "\n", "\r", '"', "'")]
replace += [(x, '_') for x in (" ", "(", "/", ".", "+", "-", "*", ":", "[", "]")]
Expand Down Expand Up @@ -179,7 +180,10 @@ def clean_column_name(self, column_name):
"index": "indices",
"repeat": "repeats",
"system": "systems",
"class": "classes"
"class": "classes",
"left": "vleft",
"right": "vright",
"union": "unions"
}
for x in (")", "\n", "\r", '"', "'"):
replace_dict[x] = ''
Expand Down

0 comments on commit 2bb2e96

Please sign in to comment.