proshop_django icon indicating copy to clipboard operation
proshop_django copied to clipboard

Update getProducts to use a Pythonic way

Open khalidfasely opened this issue 2 years ago • 0 comments

Instead of using: query = request.query_params.get('keyword') if query == None: query = '' which is right by the way, we better use the Pythonic way of doing it: query = request.query_params.get('keyword') or ''

khalidfasely avatar Sep 20 '22 16:09 khalidfasely