default count
This commit is contained in:
parent
4ad7aa62e9
commit
081186a80f
2
main.py
2
main.py
@ -82,7 +82,7 @@ def rec_score(first_id: str, second_id: str):
|
|||||||
|
|
||||||
|
|
||||||
@app.get('/recs/{production_id}')
|
@app.get('/recs/{production_id}')
|
||||||
async def recs(production_id: str, count: int | None):
|
async def recs(production_id: str, count: int | None = 5):
|
||||||
try:
|
try:
|
||||||
first = data.loc[production_id]
|
first = data.loc[production_id]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user