hackathon-cli-recommendation / cli-recommendation

4 stars 5 forks source link

Fix bug when passed `top_num` is 0 #26

Closed ReaNAiveD closed 2 years ago

ReaNAiveD commented 2 years ago

When request parameter command_top_num or scenario_top_num is passed as 0, it would fall back to top_num or 5 unexpectedly.

Now the fallback will only happen if the user does not pass command_top_num or scenario_top_num.