From 1c0069e95ebba9d168451630394407215355dd60 Mon Sep 17 00:00:00 2001 From: jonaswinkler <17569239+jonaswinkler@users.noreply.github.com> Date: Fri, 26 Feb 2021 13:09:02 +0100 Subject: [PATCH] fix pycodestyle --- src/paperless/middleware.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/paperless/middleware.py b/src/paperless/middleware.py index 0fe526556..2e9d2793c 100644 --- a/src/paperless/middleware.py +++ b/src/paperless/middleware.py @@ -13,6 +13,8 @@ class ApiVersionMiddleware: if request.user.is_authenticated: versions = settings.REST_FRAMEWORK['ALLOWED_VERSIONS'] response['X-Api-Version'] = versions[len(versions)-1] - response['X-Version'] = ".".join([str(_) for _ in version.__version__]) + response['X-Version'] = ".".join( + [str(_) for _ in version.__version__] + ) return response