mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-04-01 06:03:39 +00:00
docs: update booleans in docs
This commit is contained in:
@@ -247,7 +247,7 @@ class BaseView(View, CorsViewMixin):
|
||||
extract username from request if any
|
||||
|
||||
Returns:
|
||||
str | None: authorized username if any and None otherwise (e.g. if authorization is disabled)
|
||||
str | None: authorized username if any and ``None`` otherwise (e.g. if authorization is disabled)
|
||||
"""
|
||||
try: # try to read from payload
|
||||
data: dict[str, str] = await self.request.json() # technically it is not, but we only need str here
|
||||
|
||||
Reference in New Issue
Block a user