From 081186a80f3a1c3f311b01e7fc45100f9861c724 Mon Sep 17 00:00:00 2001 From: Krystian Wasilewski Date: Fri, 13 Jan 2023 13:41:44 +0100 Subject: [PATCH] default count --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 89e83c0..649b826 100644 --- a/main.py +++ b/main.py @@ -82,7 +82,7 @@ def rec_score(first_id: str, second_id: str): @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: first = data.loc[production_id] except KeyError: