Skip to content

Commit

Permalink
Merge pull request #611 from zen-xu/simplify-ternary-operator
Browse files Browse the repository at this point in the history
refactor: simplify ternary operator
  • Loading branch information
wangxiaoying authored Apr 18, 2024
2 parents f131364 + f021b0a commit 97f0fb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connectorx-python/connectorx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def partition_sql(
partition_query = {
"query": query,
"column": partition_on,
"min": partition_range[0] if partition_range else None,
"max": partition_range[1] if partition_range else None,
"min": partition_range and partition_range[0],
"max": partition_range and partition_range[1],
"num": partition_num,
}
return _partition_sql(conn, partition_query)
Expand Down

0 comments on commit 97f0fb6

Please sign in to comment.