Open khalidfasely opened 2 years ago
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 ''
query = request.query_params.get('keyword') if query == None: query = ''
query = request.query_params.get('keyword') or ''
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 ''