Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
ParsePy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ParsePy
Commits
a8b7bdcb
Commit
a8b7bdcb
authored
Feb 07, 2013
by
David Robinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10 from UrK/master
Small typo correction in parameter name
parents
d33a47cd
d7a2276a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
README.mkd
+1
-1
parse_rest/query.py
+3
-3
No files found.
README.mkd
View file @
a8b7bdcb
...
@@ -190,7 +190,7 @@ Notice how queries are built by chaining filter functions. The available filter
...
@@ -190,7 +190,7 @@ Notice how queries are built by chaining filter functions. The available filter
We can also order the results using:
We can also order the results using:
*
**Order**
*
**Order**
*
order(_parameter_name_, _decending_=False)
*
order(_parameter_name_, _de
s
cending_=False)
Users
Users
-----
-----
...
...
parse_rest/query.py
View file @
a8b7bdcb
...
@@ -97,9 +97,9 @@ class Queryset(object):
...
@@ -97,9 +97,9 @@ class Queryset(object):
return
self
return
self
@copy_method
@copy_method
def
order
(
self
,
order
,
decending
=
False
):
def
order
(
self
,
order
,
de
s
cending
=
False
):
# add a minus sign before the order value if decending == True
# add a minus sign before the order value if de
s
cending == True
self
.
_options
[
'order'
]
=
decending
and
(
'-'
+
order
)
or
order
self
.
_options
[
'order'
]
=
de
s
cending
and
(
'-'
+
order
)
or
order
return
self
return
self
def
exists
(
self
):
def
exists
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment