Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Migrate dependency management to Poetry #247

Merged
Prev Previous commit
Next Next commit
add limit
areebahmeddd committed Mar 14, 2025
commit b754fea6267be2df4978a96f73c03c3a521e76f9
3 changes: 2 additions & 1 deletion folksonomy/api.py
Original file line number Diff line number Diff line change
@@ -601,7 +601,7 @@ async def get_unique_values(response: Response,
k: str,
owner: str = '',
q: str = '',
limit: int = '',
limit: int = 50,
user: User = Depends(get_current_user)):
"""
Get the unique values of a given property and the corresponding number of products
@@ -613,6 +613,7 @@ async def get_unique_values(response: Response,
"""
check_owner_user(user, owner, allow_anonymous=True)
k, _ = sanitize_data(k, None)

if limit > 1000:
limit = 1000