FredericoCoelhoNunes edited a comment on issue #9048: filter_values(key)[0] 
returning a dictionary
URL: 
https://github.com/apache/incubator-superset/issues/9048#issuecomment-579942931
 
 
   I also went into the filter_values function itself and printed the value of 
`form_data.get("extra_filters")`
   and obtained
   ```
   [{'col': 'activity_option', 'op': 'in', 'val': {'value': 0, 'label': 0, 
'style': {'backgroundImage': 'linear-gradient(to right, lightgrey, lightgrey 
NaN%, rgba(0,0,0,0) NaN%', 'padding': '2px 5px'}}}, {'col': 'event_name', 'op': 
'in', 'val': ['chat_message_sent', 'dashboard_open', 
'gallery_asset_screenshot']}, {'col': 'start_date_option', 'op': 'in', 'val': 
'2019-12-08'}, {'col': 'end_date_option', 'op': 'in', 'val': '2019-12-09'}]
   ```
   
   Does anyone know why `form_data['extra_filters'][0]['val']` is a dictionary 
*ONLY IN THE CASE WHERE THE FILTER IS 0*?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to