mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 04:01:27 +00:00
chore: formatting
This commit is contained in:
parent
9f5f0507e3
commit
5f3fc0d96e
|
@ -57,7 +57,9 @@ class LogsPageMeta:
|
|||
|
||||
@strawberry.type
|
||||
class PaginatedEntries:
|
||||
page_meta: LogsPageMeta = strawberry.field(description="Metadata to aid in pagination.")
|
||||
page_meta: LogsPageMeta = strawberry.field(
|
||||
description="Metadata to aid in pagination."
|
||||
)
|
||||
entries: typing.List[LogEntry] = strawberry.field(
|
||||
description="The list of log entries."
|
||||
)
|
||||
|
|
|
@ -176,7 +176,10 @@ class Subscription:
|
|||
await asyncio.sleep(0.5)
|
||||
|
||||
@strawberry.subscription
|
||||
async def log_entries(self, info: strawberry.types.Info) -> AsyncGenerator[LogEntry, None]:
|
||||
async def log_entries(
|
||||
self,
|
||||
info: strawberry.types.Info,
|
||||
) -> AsyncGenerator[LogEntry, None]:
|
||||
reject_if_unauthenticated(info)
|
||||
return log_stream()
|
||||
|
||||
|
|
Loading…
Reference in a new issue