From 596137f23cf0adbbcb5df42fafb8e686c27bf741 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 8 May 2024 02:41:34 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- cubedash/summary/_extents.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cubedash/summary/_extents.py b/cubedash/summary/_extents.py index 28e879755..a90c002bf 100644 --- a/cubedash/summary/_extents.py +++ b/cubedash/summary/_extents.py @@ -532,7 +532,9 @@ def _dataset_creation_expression(md: MetadataType) -> ClauseElement: else: doc = md.dataset_fields["metadata_doc"].alchemy_expression creation_dt = md.definition["dataset"].get("creation_dt") or ["creation_dt"] - creation_expression = doc[creation_dt].astext.join("::timestamp at time zone 'utc'") + creation_expression = doc[creation_dt].astext.join( + "::timestamp at time zone 'utc'" + ) # If they're missing a dataset-creation time, fall back to the time it was indexed. return func.coalesce(creation_expression, DATASET.c.added)