Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
b0599ea1
Commit
b0599ea1
authored
Jan 22, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix queries and some controller query stuff
parent
2191f3e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lms/djangoapps/courseware/tabs.py
+1
-1
lms/djangoapps/open_ended_grading/controller_query_service.py
+1
-1
No files found.
lms/djangoapps/courseware/tabs.py
View file @
b0599ea1
...
...
@@ -168,7 +168,7 @@ def _combined_open_ended_grading(tab, user, course, active_page):
user_is_staff
=
has_access
(
user
,
course
,
'staff'
)
min_time_to_query
=
user
.
last_login
last_module_seen
=
StudentModule
.
objects
.
all
(
student
=
user
,
course_id
=
course_id
,
modified
>
min_time_to_query
)
.
values
(
'modified'
)
.
order_by
(
'-modified'
)[
0
]
last_module_seen
=
StudentModule
.
objects
.
all
(
student
=
user
,
course_id
=
course_id
,
modified
__gt
=
min_time_to_query
)
.
values
(
'modified'
)
.
order_by
(
'-modified'
)[
0
]
last_time_viewed
=
last_module_seen
[
'modified'
]
pending_grading
=
False
...
...
lms/djangoapps/open_ended_grading/controller_query_service.py
View file @
b0599ea1
...
...
@@ -16,7 +16,7 @@ class ControllerQueryService(GradingService):
Interface to staff grading backend.
"""
def
__init__
(
self
,
config
):
super
(
ControllerQuery
,
self
)
.
__init__
(
config
)
super
(
ControllerQuery
Service
,
self
)
.
__init__
(
config
)
self
.
check_eta_url
=
self
.
url
+
'/get_submission_eta/'
self
.
is_unique_url
=
self
.
url
+
'/is_name_unique/'
self
.
combined_notifications_url
=
self
.
url
+
'/combined_notifications/'
...
...
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