Format code with black
This commit is contained in:
parent
5c6862180b
commit
e74fd6b9ba
2 changed files with 4 additions and 5 deletions
|
@ -72,8 +72,7 @@ def server(ctx, port, scheme, static, debug, reload):
|
||||||
|
|
||||||
|
|
||||||
@main.group("import")
|
@main.group("import")
|
||||||
def import_group():
|
def import_group(): ...
|
||||||
...
|
|
||||||
|
|
||||||
|
|
||||||
@import_group.command("cards")
|
@import_group.command("cards")
|
||||||
|
|
|
@ -218,9 +218,9 @@ class SearchHandler(RequestHandler):
|
||||||
limit=limit + 1,
|
limit=limit + 1,
|
||||||
offset=limit * (page - 1),
|
offset=limit * (page - 1),
|
||||||
sort_by=sort_by,
|
sort_by=sort_by,
|
||||||
in_collection=in_collection in ("yes", "true")
|
in_collection=(
|
||||||
if in_collection
|
in_collection in ("yes", "true") if in_collection else None
|
||||||
else None,
|
),
|
||||||
)
|
)
|
||||||
has_more = copies and len(copies) > limit
|
has_more = copies and len(copies) > limit
|
||||||
self.set_header("Content-Type", "application/json")
|
self.set_header("Content-Type", "application/json")
|
||||||
|
|
Loading…
Reference in a new issue