)]}'
{"nova/db/sqlalchemy/api.py":[{"author":{"_account_id":475,"name":"Rick Harris","email":"rick.harris@rackspace.com","username":"rconradharris"},"change_message_id":"888f6d6231ff68eeb219c797b6bbbb45c1ef388d","unresolved":false,"context_lines":[{"line_number":3661,"context_line":"        \"\"\"Do exact match against a column. value to match can be a list"},{"line_number":3662,"context_line":"        so you can match any value in the list."},{"line_number":3663,"context_line":"        \"\"\""},{"line_number":3664,"context_line":"        if isinstance(value, list) or isinstance(value, set):"},{"line_number":3665,"context_line":"            column_attr \u003d getattr(models.BandwidthUsage, column)"},{"line_number":3666,"context_line":"            return query.filter(column_attr.in_(value))"},{"line_number":3667,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAEH%2F%2F%2B8U%3D","line":3664,"updated":"2012-01-24 17:36:36.000000000","message":"Very minor, but you might want to include tuple in this as well.\n\nif isinstance(value, (list, set, tuple)):\n...","commit_id":"f6039add96207e07f6b0a30420d130075e5ce196"},{"author":{"_account_id":475,"name":"Rick Harris","email":"rick.harris@rackspace.com","username":"rconradharris"},"change_message_id":"888f6d6231ff68eeb219c797b6bbbb45c1ef388d","unresolved":false,"context_lines":[{"line_number":3670,"context_line":"            return query.filter_by(**filter_dict)"},{"line_number":3671,"context_line":""},{"line_number":3672,"context_line":"    session \u003d get_session()"},{"line_number":3673,"context_line":"    query_prefix \u003d session.query(models.BandwidthUsage).\\"},{"line_number":3674,"context_line":"            order_by(desc(models.BandwidthUsage.created_at))"},{"line_number":3675,"context_line":""},{"line_number":3676,"context_line":"    # Make a copy of the filters dictionary to use going forward, as we\u0027ll"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAEH%2F%2F%2B8Q%3D","line":3673,"updated":"2012-01-24 17:36:36.000000000","message":"Should we use the `model_query` helper to filter out any deleted items?\n\n(Also, just to keep a more consistent style throughout the file--in case any one copies and pastes, they\u0027ll get the (arguably) more-correct model_query version.)","commit_id":"f6039add96207e07f6b0a30420d130075e5ce196"}]}
