mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-09 20:53:10 +00:00
style: do not break line before logic operator
This commit is contained in:
parent
cc4b411657
commit
5c5e098bab
|
@ -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.")
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue