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(
|
def paginated(
|
||||||
self,
|
self,
|
||||||
limit: int = 20,
|
limit: int = 20,
|
||||||
up_cursor: str
|
# All entries returned will be lesser than this cursor. Sets upper bound on results.
|
||||||
| None = None, # All entries returned will be lesser than this cursor. Sets upper bound on results.
|
up_cursor: str | None = None,
|
||||||
down_cursor: str
|
# All entries returned will be greater than this cursor. Sets lower bound on results.
|
||||||
| None = None, # All entries returned will be greater than this cursor. Sets lower bound on results.
|
down_cursor: str | None = None,
|
||||||
) -> PaginatedEntries:
|
) -> PaginatedEntries:
|
||||||
if limit > 50:
|
if limit > 50:
|
||||||
raise Exception("You can't fetch more than 50 entries via single request.")
|
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(
|
def get_paginated_logs(
|
||||||
limit: int = 20,
|
limit: int = 20,
|
||||||
up_cursor: str
|
# All entries returned will be lesser than this cursor. Sets upper bound on results.
|
||||||
| None = None, # All entries returned will be lesser than this cursor. Sets upper bound on results.
|
up_cursor: str | None = None,
|
||||||
down_cursor: str
|
# All entries returned will be greater than this cursor. Sets lower bound on results.
|
||||||
| None = None, # All entries returned will be greater than this cursor. Sets lower bound on results.
|
down_cursor: str | None = None,
|
||||||
):
|
):
|
||||||
j = journal.Reader()
|
j = journal.Reader()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue