aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wqflask/wqflask/metadata_edits.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py
index 3c996ce3..8f0166e5 100644
--- a/wqflask/wqflask/metadata_edits.py
+++ b/wqflask/wqflask/metadata_edits.py
@@ -557,17 +557,17 @@ def list_diffs():
return render_template(
"display_files.html",
approved=sorted(
- org_diffs.get("approved"),
+ org_diffs["approved"],
reverse=True,
- key=lambda d: d.get("time_stamp")),
+ key=lambda d: d["meta"]["time_stamp"]),
rejected=sorted(
- org_diffs.get("rejected"),
+ org_diffs["rejected"],
reverse=True,
- key=lambda d: d.get("time_stamp")),
+ key=lambda d: d["meta"]["time_stamp"]),
waiting=sorted(
- org_diffs.get("waiting"),
+ org_diffs["waiting"],
reverse=True,
- key=lambda d: d.get("time_stamp")))
+ key=lambda d: d["meta"]["time_stamp"]))
return accessible_diffs.either(__handle_error__, __success__)