Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 4b2d36a

Browse files
fix: add missing arg
1 parent f3e522d commit 4b2d36a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

postgrest/base_request_builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,9 @@ def explain(
556556
if key not in ["self", "format"] and value
557557
]
558558
options_str = "|".join(options)
559-
media_type = self.headers['Accept'] if 'Accept' in self.headers else 'application/json'
559+
media_type = (
560+
self.headers["Accept"] if "Accept" in self.headers else "application/json"
561+
)
560562
self.headers["Accept"] = (
561563
f"application/vnd.pgrst.plan+{format}; for={media_type}; options={options_str}"
562564
)

0 commit comments

Comments
 (0)