Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
accountmanager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sucs
accountmanager
Commits
7a8faca3
Commit
7a8faca3
authored
6 years ago
by
Imran Hussain
Browse files
Options
Downloads
Patches
Plain Diff
Add a new option to delete menu to just get accounts markd for deletion
parent
580c9c0e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sucsam.py
+15
-0
15 additions, 0 deletions
sucsam.py
with
15 additions
and
0 deletions
sucsam.py
+
15
−
0
View file @
7a8faca3
...
...
@@ -374,6 +374,7 @@ def deleteMenu(deleteArray):
print
(
"
2. Add/delete users from delete list
"
)
print
(
"
3. Auto populate list of users to be deleted
"
)
print
(
"
3.1 Just add student accounts
"
)
print
(
"
3.5 Just add accounts marked as
'
delete
'
in the DB
"
)
print
(
"
9. Do the delete
"
)
print
(
"
0. Go back to main menu
"
)
...
...
@@ -413,6 +414,20 @@ def deleteMenu(deleteArray):
for
student
in
studentsBad
:
print
(
"
Adding
"
+
str
(
student
[
0
])
+
"
to the list because the DB says:
"
+
str
(
student
[
1
]))
deleteArray
.
append
(
student
[
0
])
elif
option
==
"
3.5
"
:
for
student
in
studentsBad
:
if
student
[
1
]
==
"
delete
"
:
print
(
"
Adding
"
+
str
(
student
[
0
])
+
"
to the list because the DB says:
"
+
str
(
student
[
1
]))
deleteArray
.
append
(
student
[
0
])
for
soc
in
societiesBad
:
if
soc
[
1
]
==
"
delete
"
:
print
(
"
Adding
"
+
str
(
soc
[
0
])
+
"
to the list because the DB says:
"
+
str
(
soc
[
1
]))
deleteArray
.
append
(
soc
[
0
])
for
ass
in
associatesBad
:
if
ass
==
"
delete
"
print
(
"
Adding
"
+
str
(
ass
[
0
])
+
"
to the list because the DB says:
"
+
str
(
ass
[
1
]))
deleteArray
.
append
(
ass
[
0
])
deleteMenu
(
deleteArray
)
elif
option
==
"
9
"
:
if
debugmode
>
0
:
print
(
"
Debugmode is set. Doing No Deletes.
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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