Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when_values edge case #7

Open
robdmc opened this issue Jan 2, 2017 · 0 comments
Open

when_values edge case #7

robdmc opened this issue Jan 2, 2017 · 0 comments

Comments

@robdmc
Copy link
Owner

robdmc commented Jan 2, 2017

performing a when_values() filter on a non-shown value results in non-match

Here is example code. removing time_group_config_pk makes filter result in non-match

            ###############################################################
            bb = BB()
            bb.when_context(in_test__in='first', doing='decrement')
            #bb.when_context(in_test__in=['initial', 'first'])
            bb.when_values(
                entity_pk='hard_worker',
                time_group_config_pk='week',
                metric_config_pk='Activity Score',
                #time='12/17/2014',
                time__gte='12/15/2014',
                time__lte='12/21/2014',
            )
            #bb.view_context('in_test', 'doing')
            bb.show(
                rec,
                'time', 'delta','benchmark',
                score_delta=score_delta,
                expected_score_delta=expected_score_delta,
                reduced_benchmark=reduced_benchmark,
                time_group_config_pk=agg_time_group_config.pk
            )
            ###############################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant