Fix filter issue to support value with space
[pti/o2.git] / o2common / views / route.py
index 08621ff..c6fc56e 100644 (file)
@@ -98,8 +98,8 @@ class o2_marshal_with(marshal_with):
 
             req_args = request.args
             mask = self._gen_mask_from_selector(**req_args)
-
-            # mask = self.mask
+            if mask == '':
+                mask = self.mask
 
             # if has_request_context():
             # mask_header = current_app.config["RESTX_MASK_HEADER"]
@@ -130,7 +130,7 @@ class o2_marshal_with(marshal_with):
         mask_val = ''
         if 'all_fields' in kwargs:
             all_fields_without_space = kwargs['all_fields'].replace(" ", "")
-            logger.info('all_fields selector value is {}'.format(
+            logger.debug('all_fields selector value is {}'.format(
                 all_fields_without_space))
             # all_fields = all_fields_without_space.lower()
             # if 'true' == all_fields: