Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Postal Owl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Postal Owl
Postal Owl
Merge requests
!1
Student grading
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Student grading
student-grading
into
master
Overview
38
Commits
7
Changes
1
Merged
Martin Mareš
requested to merge
student-grading
into
master
4 years ago
Overview
31
Commits
7
Changes
1
0
0
Merge request reports
Viewing commit
53e2fa5a
Show latest version
1 file
+
2
−
2
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
53e2fa5a
Student graders also receive notifications
· 53e2fa5a
Václav Končický
authored
4 years ago
owl.py
+
2
−
2
View file @ 53e2fa5a
Edit in single-file editor
Open in Web IDE
Show full file
@@ -1472,10 +1472,10 @@ def send_notify_post(post):
@@ -1472,10 +1472,10 @@ def send_notify_post(post):
FROM owl_enroll e
FROM owl_enroll e
JOIN owl_users u ON u.uid = e.uid
JOIN owl_users u ON u.uid = e.uid
WHERE e.cid = %s
WHERE e.cid = %s
AND (%s < 0 OR e.uid = %s OR e.is_teacher = true)
AND (%s < 0 OR e.uid = %s OR e.is_teacher = true
OR e.uid IN (SELECT uid FROM owl_student_graders WHERE tid=%s)
)
AND u.notify = true
AND u.notify = true
AND u.email IS NOT NULL
AND u.email IS NOT NULL
"""
,
(
topic
.
cid
,
post
.
target_uid
,
post
.
target_uid
))
"""
,
(
topic
.
cid
,
post
.
target_uid
,
post
.
target_uid
,
topic
.
tid
))
dests
=
db
.
fetchall
()
dests
=
db
.
fetchall
()
for
dest
in
dests
:
for
dest
in
dests
:
Loading