Github user ran-z commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/96#discussion_r109890181
  
    --- Diff: aria/storage/sql_mapi.py ---
    @@ -243,7 +250,10 @@ def _filter_query(self, query, filters):
         @staticmethod
         def _add_value_filter(query, filters):
             for column, value in filters.items():
    -            if isinstance(value, (list, tuple)):
    +            if isinstance(value, dict):
    +                for predicate, operand in value.items():
    +                    query = query.filter(getattr(column, 
predicate)(operand))
    --- End diff --
    
    hmm is this really how you do this? :D seems complex


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to