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 Apr 1, 2024
1 parent 87b4590 commit 6466d59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/template_prefixes/loader_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests loading template of jinja2 templates"""

import os

from jinja2 import Environment, FileSystemLoader
Expand Down
6 changes: 3 additions & 3 deletions voila/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ async def get_generator(self, path=None):
# Adding request uri to kernel env
request_info = {}
request_info[ENV_VARIABLE.SCRIPT_NAME] = self.request.path
request_info[
ENV_VARIABLE.PATH_INFO
] = "" # would be /foo/bar if voila.ipynb/foo/bar was supported
request_info[ENV_VARIABLE.PATH_INFO] = (
"" # would be /foo/bar if voila.ipynb/foo/bar was supported
)
request_info[ENV_VARIABLE.QUERY_STRING] = str(self.request.query)
request_info[ENV_VARIABLE.SERVER_SOFTWARE] = f"voila/{__version__}"
request_info[ENV_VARIABLE.SERVER_PROTOCOL] = str(self.request.version)
Expand Down

0 comments on commit 6466d59

Please sign in to comment.