From c9db57a30d98bf62b394f96428dfbfda98c2e375 Mon Sep 17 00:00:00 2001 From: Shane St Savage Date: Wed, 20 May 2026 16:59:04 -0700 Subject: [PATCH] Include accession time in bin details Include accession time (`added`) in bin details returned by the API (/api/bin/). This is useful for determining the lag time between bin accession and the production of postprocessed files (blobs/features/autoclass). --- ifcbdb/dashboard/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ifcbdb/dashboard/views.py b/ifcbdb/dashboard/views.py index 97aab275..0894c810 100644 --- a/ifcbdb/dashboard/views.py +++ b/ifcbdb/dashboard/views.py @@ -881,6 +881,7 @@ def _bin_details(bin, dataset=None, view_size=None, scale_factor=None, preload_a "cruise": bin.cruise, "cast": bin.cast, "niskin": bin.niskin, + "accession_time_iso": bin.added.isoformat(), } def _mosaic_page_image(request, bin_id): @@ -1423,4 +1424,4 @@ def team_page(request, team_name): else: url = reverse("datasets", args=[team.name]) - return HttpResponseRedirect(url) \ No newline at end of file + return HttpResponseRedirect(url)