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
d7a2276a
Commit
d7a2276a
authored
Feb 07, 2013
by
Uri Kogan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo correction in the name of the variable: decending -> descending
parent
d33a47cd
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 @
d7a2276a
...
...
@@ -190,7 +190,7 @@ Notice how queries are built by chaining filter functions. The available filter
We can also order the results using:
*
**Order**
*
order(_parameter_name_, _decending_=False)
*
order(_parameter_name_, _de
s
cending_=False)
Users
-----
...
...
parse_rest/query.py
View file @
d7a2276a
...
...
@@ -97,9 +97,9 @@ class Queryset(object):
return
self
@copy_method
def
order
(
self
,
order
,
decending
=
False
):
# add a minus sign before the order value if decending == True
self
.
_options
[
'order'
]
=
decending
and
(
'-'
+
order
)
or
order
def
order
(
self
,
order
,
de
s
cending
=
False
):
# add a minus sign before the order value if de
s
cending == True
self
.
_options
[
'order'
]
=
de
s
cending
and
(
'-'
+
order
)
or
order
return
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