Skip to content

Commit

Permalink
[AIRFLOW-4459] Fix wrong DAG count in /home page when DAG count is ze…
Browse files Browse the repository at this point in the history
…ro (apache#5235)
  • Loading branch information
XD-DENG authored and feng-tao committed May 7, 2019
1 parent 24b9c7c commit 1755c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def get_int_arg(value, default=0):
search_query=arg_search_query if arg_search_query else '',
page_size=dags_per_page,
num_of_pages=num_of_pages,
num_dag_from=start + 1,
num_dag_from=min(start + 1, num_of_all_dags),
num_dag_to=min(end, num_of_all_dags),
num_of_all_dags=num_of_all_dags,
paging=wwwutils.generate_pages(current_page, num_of_pages,
Expand Down

0 comments on commit 1755c35

Please sign in to comment.