diff --git a/selfprivacy_api/graphql/queries/logs.py b/selfprivacy_api/graphql/queries/logs.py index 6841f30..cf8fe21 100644 --- a/selfprivacy_api/graphql/queries/logs.py +++ b/selfprivacy_api/graphql/queries/logs.py @@ -71,10 +71,10 @@ class Logs: def paginated( self, limit: int = 20, - up_cursor: str - | None = None, # All entries returned will be lesser than this cursor. Sets upper bound on results. - down_cursor: str - | None = None, # All entries returned will be greater than this cursor. Sets lower bound on results. + # All entries returned will be lesser than this cursor. Sets upper bound on results. + up_cursor: str | None = None, + # All entries returned will be greater than this cursor. Sets lower bound on results. + down_cursor: str | None = None, ) -> PaginatedEntries: if limit > 50: raise Exception("You can't fetch more than 50 entries via single request.") diff --git a/selfprivacy_api/utils/systemd_journal.py b/selfprivacy_api/utils/systemd_journal.py index 6c03c93..48e97b8 100644 --- a/selfprivacy_api/utils/systemd_journal.py +++ b/selfprivacy_api/utils/systemd_journal.py @@ -20,10 +20,10 @@ def get_events_from_journal( def get_paginated_logs( limit: int = 20, - up_cursor: str - | None = None, # All entries returned will be lesser than this cursor. Sets upper bound on results. - down_cursor: str - | None = None, # All entries returned will be greater than this cursor. Sets lower bound on results. + # All entries returned will be lesser than this cursor. Sets upper bound on results. + up_cursor: str | None = None, + # All entries returned will be greater than this cursor. Sets lower bound on results. + down_cursor: str | None = None, ): j = journal.Reader()