summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-03-19 15:21:52 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-03-19 15:21:52 +0100
commit972bcef0202e97d39e3bda4297961d5616e7cc3c (patch)
tree2325c63aaa2684e5f8b8ddac15e1549fd6308b54 /lib
parent8e59d0d8fc75b68774f3553a22e992a062e54fa7 (diff)
cli: dataref export: sort by env names rather than values. oops.
Diffstat (limited to 'lib')
-rw-r--r--lib/cli.py2
1 files changed, 1 insertions, 1 deletions
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: