Showing 2 of 3 total issues
Function create
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def create(shop_id, type_name):
"""Create a product."""
shop = _get_shop_or_404(shop_id)
type_ = _get_product_type_or_400(type_name)
Function connect_verify
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def connect_verify():
"""Verify signed Discord parameters."""
params = request.args.to_dict()
if 'code' not in params: