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] authored and omad committed Nov 8, 2022
1 parent 2afd06a commit b289b0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions cubedash/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ def dataset_timeline(
):
summary = _model.get_time_summary(product_name, year, month, day)
if summary is None:
abort(404, f"No known information for product "
f"{product_name!r} {year or 'all'} {month or 'all'} {day or 'all'}")
abort(
404,
f"No known information for product "
f"{product_name!r} {year or 'all'} {month or 'all'} {day or 'all'}",
)

def _datekey(k):
# The timezone is the global grouping timezone: we don't want it in json.
Expand Down
4 changes: 3 additions & 1 deletion cubedash/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,9 @@ def as_rich_json(o):
return as_json(jsonify_document(o))


def as_json(o, content_type="application/json", downloadable_filename_prefix: str = None) -> flask.Response:
def as_json(
o, content_type="application/json", downloadable_filename_prefix: str = None
) -> flask.Response:
"""
Serialise an object into a json flask response.
Expand Down

0 comments on commit b289b0c

Please sign in to comment.