From 322870c7e94eb0d990264123157c309e5644be7a Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 5 Sep 2024 18:27:03 +0200 Subject: [PATCH] Table utilisateurs: lien export excel --- app/scodoc/sco_users.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_users.py b/app/scodoc/sco_users.py index 8ae26082..868f6dec 100644 --- a/app/scodoc/sco_users.py +++ b/app/scodoc/sco_users.py @@ -263,7 +263,11 @@ def list_users( html_class="table_leftalign list_users", html_with_td_classes=True, html_sortable=True, - base_url="%s?all_depts=%s" % (request.base_url, 1 if all_depts else 0), + base_url=f"""{request.base_url}?all_depts={ + 1 if all_depts else 0}&with_inactives={ + 1 if with_inactives else 0}&having_role_name={ + having_role.name if having_role else ''}&detail_roles={ + 1 if detail_roles else 0}""", pdf_link=False, # table is too wide to fit in a paper page => disable pdf preferences=sco_preferences.SemPreferences(), table_id="list-users",