Skip to content

Commit

Permalink
Merge pull request #9 from Cimpress-MCP/sql-print-output-fix
Browse files Browse the repository at this point in the history
sql output format change
  • Loading branch information
mzas authored Apr 17, 2019
2 parents 53b4338 + b47eaf9 commit d76b1a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions j2v/generation/result_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, sql_table_name):
self.sql_table_name = sql_table_name

def print_sql(self, all_fields, all_joins):
return print("\n".join(self.get_sql_str(all_fields, all_joins)))
return print(self.get_sql_str(all_fields, all_joins))

def get_sql_str(self, all_fields, all_joins):
sql_out = list()
Expand All @@ -80,4 +80,4 @@ def get_sql_str(self, all_fields, all_joins):

sql_out.append("FROM {table},".format(table=self.sql_table_name))
sql_out.append("\n,".join(all_joins))
return sql_out
return "\n".join(sql_out)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
with open("README.md", "r") as fh:
setup(
name='j2v',
version='1.2.2',
version='1.2.3',
author="Michal Zasadzinski",
author_email="michal.zasadzinski@gmail.com",
description="A tool to generate Looker views and explores from sample JSONs",
Expand Down

0 comments on commit d76b1a1

Please sign in to comment.