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

add sugar for typing a query #16

Open
dwiel opened this issue Nov 10, 2015 · 0 comments
Open

add sugar for typing a query #16

dwiel opened this issue Nov 10, 2015 · 0 comments

Comments

@dwiel
Copy link
Owner

dwiel commented Nov 10, 2015

assignments = gc.query({
    'savings_opportunity_assignment.id': 10,
    'savings_opportunity_assignment.value?: None,
    'savings_opportunity_assignment.message?: None,
})
print [assignment['savings_opportunity_assignment.value'] for assignment in assignments]

could be expressed something like this:

assignments = gc.query('savings_opportunity_assignment', {
    'id': 10,
    'value?': None,
    'message?': None,
})
print [assignment['value'] for assignment in assignments]
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