mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-09 20:53:10 +00:00
chore: formatting
This commit is contained in:
parent
9f5f0507e3
commit
5f3fc0d96e
|
@ -57,7 +57,9 @@ class LogsPageMeta:
|
||||||
|
|
||||||
@strawberry.type
|
@strawberry.type
|
||||||
class PaginatedEntries:
|
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(
|
entries: typing.List[LogEntry] = strawberry.field(
|
||||||
description="The list of log entries."
|
description="The list of log entries."
|
||||||
)
|
)
|
||||||
|
|
|
@ -176,7 +176,10 @@ class Subscription:
|
||||||
await asyncio.sleep(0.5)
|
await asyncio.sleep(0.5)
|
||||||
|
|
||||||
@strawberry.subscription
|
@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)
|
reject_if_unauthenticated(info)
|
||||||
return log_stream()
|
return log_stream()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue