From 972bcef0202e97d39e3bda4297961d5616e7cc3c Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 19 Mar 2024 15:21:52 +0100 Subject: cli: dataref export: sort by env names rather than values. oops. --- lib/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli.py b/lib/cli.py index ff58099..8d10347 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -336,7 +336,7 @@ def model_quality_table( def export_dataref(dref_file, dref, precision=None): with open(dref_file, "w") as f: - for k, v in sorted(os.environ.items(), key=lambda kv: kv[1]): + for k, v in sorted(os.environ.items(), key=lambda kv: kv[0]): if k.startswith("DFATOOL_"): print(f"% {k}='{v}'", file=f) for arg in sys.argv: -- cgit v1.2.3