Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 8, 2024
1 parent 901a03b commit 596137f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cubedash/summary/_extents.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 596137f

Please sign in to comment.