From 2248705e1adc8c57b0d5603137953048ee2f5715 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 4 Oct 2025 11:59:53 +0000 Subject: [PATCH] --ui-filesz can have trailing dash --- copyparty/authsrv.py | 2 +- tests/util.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index 04507f5f..ffe47171 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -3046,7 +3046,7 @@ class AuthSrv(object): "dvol": self.args.au_vol, "idxh": int(self.args.ih), "dutc": not self.args.localtime, - "dfszf": self.args.ui_filesz, + "dfszf": self.args.ui_filesz.strip("-"), "themes": self.args.themes, "turbolvl": self.args.turbo, "nosubtle": self.args.nosubtle, diff --git a/tests/util.py b/tests/util.py index c23e94b1..765d4c34 100644 --- a/tests/util.py +++ b/tests/util.py @@ -155,7 +155,7 @@ class Cfg(Namespace): ex = "gid uid" ka.update(**{k: -1 for k in ex.split()}) - ex = "hash_mt hsortn qdel safe_dedup scan_pr_r scan_pr_s scan_st_r srch_time tail_fd tail_rate th_spec_p u2abort u2j u2sz ui_filesz unp_who" + ex = "hash_mt hsortn qdel safe_dedup scan_pr_r scan_pr_s scan_st_r srch_time tail_fd tail_rate th_spec_p u2abort u2j u2sz unp_who" ka.update(**{k: 1 for k in ex.split()}) ex = "ac_convt au_vol dl_list du_iwho mtab_age reg_cap s_thead s_tbody tail_tmax tail_who th_convt ups_who ver_iwho zip_who" @@ -223,6 +223,7 @@ class Cfg(Namespace): th_x3="n", u2sort="s", u2ts="c", + ui_filesz="1", unpost=600, ver_who="all", warksalt="hunter2",