Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mario/query_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from mario.dataset_specification import DatasetSpecification
from mario.metadata import Metadata
from mario.mapping import FieldMapping
from mario.utils import to_snake_case

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -172,7 +173,7 @@ def create_constraints(self, q):
column = self.mapping.as_physical[constraint.item]
placeholders = []
for i in range(len(constraint.allowed_values)):
parameter_name = column.replace(" ", "_") + str(i)
parameter_name = to_snake_case(column) + str(i)
# Postgres style.
# TODO Probably need some way of identifying which parameter style to apply.
parameter = Parameter('%('+parameter_name+')s')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='mario-pipeline-tools',
version='0.62',
version='0.63',
packages=['mario'],
url='https://github.com/JiscDACT/mario',
license='all rights reserved',
Expand Down
Loading