Skip to content

Commit

Permalink
Py3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremiah Lowin committed Aug 14, 2015
1 parent 516f49e commit 999d16f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions airflow/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,10 +679,10 @@ def are_dependencies_met(
qry = (
session
.query(
func.sum(
case([(TI.state == State.SUCCESS, 1)], else_=0)),
func.sum(
case([(TI.state == State.SKIPPED, 1)], else_=0)),
func.coalesce(func.sum(
case([(TI.state == State.SUCCESS, 1)], else_=0)), 0),
func.coalesce(func.sum(
case([(TI.state == State.SKIPPED, 1)], else_=0)), 0),
func.count(TI.task_id),
)
.filter(
Expand Down

0 comments on commit 999d16f

Please sign in to comment.