Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Boeing OpenEdX Data Pipeline
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CS 5934 Team 2 (Blacksburg)
Boeing OpenEdX Data Pipeline
Commits
b0d84e21
Commit
b0d84e21
authored
1 year ago
by
Chris Lattman
Browse files
Options
Downloads
Patches
Plain Diff
Ignore inactive users
parent
9a384802
1 merge request
!9
Make pipeline robust
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
service/pipeline.py
+1
-1
1 addition, 1 deletion
service/pipeline.py
with
1 addition
and
1 deletion
service/pipeline.py
+
1
−
1
View file @
b0d84e21
...
@@ -24,7 +24,7 @@ while True:
...
@@ -24,7 +24,7 @@ while True:
start_time
=
time
()
start_time
=
time
()
# Get emails, student IDs, and usernames of students (excludes default users and instructors)
# Get emails, student IDs, and usernames of students (excludes default users and instructors)
query
=
(
"
SELECT id, username, email FROM auth_user WHERE last_login IS NOT NULL AND is_superuser = 0 AND is_staff = 0
"
)
query
=
(
"
SELECT id, username, email FROM auth_user WHERE last_login IS NOT NULL AND is_superuser = 0 AND is_staff = 0
AND is_active = 1
"
)
mysql_cursor
.
execute
(
query
)
mysql_cursor
.
execute
(
query
)
student_dict
=
{}
student_dict
=
{}
for
(
id
,
username
,
email
)
in
mysql_cursor
:
for
(
id
,
username
,
email
)
in
mysql_cursor
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment