default count

This commit is contained in:
Krystian Wasilewski 2023-01-13 13:41:44 +01:00
parent 4ad7aa62e9
commit 081186a80f

View File

@ -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: