chore(deps): update dependency ruff to ^0.1.0 (#2944)

* chore(deps): update dependency ruff to ^0.1.0

* fix breaking cfg change

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2024-01-11 00:53:54 +00:00
committed by GitHub
parent 1d7fc0a945
commit ce929f2833
7 changed files with 28 additions and 29 deletions

View File

@@ -34,7 +34,7 @@ class MealieCrudRoute(APIRoute):
with contextlib.suppress(JSONDecodeError):
response = await original_route_handler(request)
response_body = json.loads(response.body)
if type(response_body) == dict:
if isinstance(response_body, dict):
if last_modified := response_body.get("updateAt"):
response.headers["last-modified"] = last_modified