Skip to content

Commit

Permalink
Replacing tabs in generated queries with whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Jan 5, 2016
1 parent d30cdc0 commit a0608ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bigsanity/query_construct.py
Expand Up @@ -37,7 +37,7 @@ def _construct_equivalence_query(tables, conditions):
WHERE
{conditions}
ORDER BY
test_id""".format(tables=',\n\t'.join(tables),
test_id""".format(tables=',\n '.join(tables),
conditions='\n AND '.join(conditions)).strip()


Expand Down Expand Up @@ -113,8 +113,8 @@ def _format_time_range_condition(self):
end_time = _to_unix_timestamp(self._time_range_end)
end_time_human = _to_human_readable_date(self._time_range_end)
return (
'((web100_log_entry.log_time >= {start_time}) AND\t-- {start_time_human}'
'\n\t (web100_log_entry.log_time < {end_time}))\t-- {end_time_human}'
'((web100_log_entry.log_time >= {start_time}) AND -- {start_time_human}'
'\n (web100_log_entry.log_time < {end_time})) -- {end_time_human}'
).format(start_time=start_time,
start_time_human=start_time_human,
end_time=end_time,
Expand Down

0 comments on commit a0608ea

Please sign in to comment.