You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2023/03/07 16:16:29 UTC
[airflow] 22/23: Normalising the usage of generate_pages (#29898)
This is an automated email from the ASF dual-hosted git repository.
ephraimanierobi pushed a commit to branch v2-5-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 09e90630f0c16beacda24e7d12d07b059f84b960
Author: Amogh Desai <am...@gmail.com>
AuthorDate: Fri Mar 3 22:38:56 2023 +0530
Normalising the usage of generate_pages (#29898)
Co-authored-by: Amogh <ad...@cloudera.com>
(cherry picked from commit f0bd45389c7799884a26d2b9c79b0498683d3e03)
---
airflow/www/views.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/airflow/www/views.py b/airflow/www/views.py
index 7b535484de..56e3a28a26 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -3786,7 +3786,10 @@ class Airflow(AirflowBaseView):
audit_logs_count=audit_logs_count,
page_size=PAGE_SIZE,
paging=wwwutils.generate_pages(
- current_page, num_of_pages, arg_sorting_key, arg_sorting_direction
+ current_page,
+ num_of_pages,
+ sorting_key=arg_sorting_key if arg_sorting_key else None,
+ sorting_direction=arg_sorting_direction if arg_sorting_direction else None,
),
sorting_key=arg_sorting_key,
sorting_direction=arg_sorting_direction,