mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Handle missing request object, refs #884
This commit is contained in:
parent
1bae24691f
commit
c7e8a4aaac
1 changed files with 1 additions and 1 deletions
|
|
@ -739,7 +739,7 @@ class Datasette:
|
|||
**{
|
||||
"actor": request.actor if request else None,
|
||||
"display_actor": display_actor,
|
||||
"show_logout": "ds_actor" in request.cookies,
|
||||
"show_logout": request is not None and "ds_actor" in request.cookies,
|
||||
"app_css_hash": self.app_css_hash(),
|
||||
"zip": zip,
|
||||
"body_scripts": body_scripts,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue