Skip to content

Commit f37acc4

Browse files
author
ks6088ts
committed
fix lint issue
1 parent f922242 commit f37acc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

template_fastapi/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ async def search_items(
9999
if q:
100100
q = q.lower()
101101
results = [
102-
item for item in results if q in item.name.lower() or (item.description and q in item.description.lower())
102+
item
103+
for item in results
104+
if q in item.name.lower() or (item.description is not None and q in item.description.lower())
103105
]
104106

105107
if min_price is not None:

0 commit comments

Comments
 (0)