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

Added a missing bracket. #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

agrogers
Copy link

@agrogers agrogers commented Nov 9, 2020

I think that bracket should be there. I dont use py4web so not 100% on that.

I modified some terminology that I found confusing when i was learning pyDAL. db(db.task).select(...) doesn't really return a query - it returns a list of records (or rows). To my mind, the query part is 'db.Task'. The 'select()' executes the query part and returns records (or rows).  I often build big queries with something like q1=db.Task.id>10 and also q2=dbTask.id<100 and then records=db(q1 & q2).select(). So the query parts are inside the brackets.
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

Successfully merging this pull request may close these issues.

1 participant