Format code with black

This commit is contained in:
Correl Roush 2024-02-21 18:11:03 -05:00
parent 5c6862180b
commit e74fd6b9ba
2 changed files with 4 additions and 5 deletions

View File

@ -72,8 +72,7 @@ def server(ctx, port, scheme, static, debug, reload):
@main.group("import")
def import_group():
...
def import_group(): ...
@import_group.command("cards")

View File

@ -218,9 +218,9 @@ class SearchHandler(RequestHandler):
limit=limit + 1,
offset=limit * (page - 1),
sort_by=sort_by,
in_collection=in_collection in ("yes", "true")
if in_collection
else None,
in_collection=(
in_collection in ("yes", "true") if in_collection else None
),
)
has_more = copies and len(copies) > limit
self.set_header("Content-Type", "application/json")