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
0e2557ce
Commit
0e2557ce
authored
6 years ago
by
Alexander Moras
Browse files
Options
Downloads
Patches
Plain Diff
Add renewal reminder options for societies and associates
parent
134ac336
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
+14
-6
14 additions, 6 deletions
sucsam.py
with
14 additions
and
6 deletions
sucsam.py
+
14
−
6
View file @
0e2557ce
...
...
@@ -367,22 +367,24 @@ def deleteUser(peopleList):
def
reminderMenu
():
print
(
""
)
print
(
"
Double check https://sucs.org/Admin/SU that everyone that has paid to renew has been marked as renwed. This tool doesn
'
t do that job yet!
"
)
print
(
"
Double check https://sucs.org/Admin/SU that everyone that has paid to renew has been marked as ren
e
wed. This tool doesn
'
t do that job yet!
"
)
print
(
""
)
print
(
"
1. View a list of accounts that aren
'
t marked as renewed in the DB
"
)
print
(
"
2 Semd email to all reminding them to renew
"
)
print
(
"
2.1 Semd email to all students reminding them to renew
"
)
print
(
"
2 Send email to ALL reminding them to renew
"
)
print
(
"
2.1 Send email to all STUDENTS reminding them to renew
"
)
print
(
"
2.2 Send email to all SOCIETIES reminding them to renew
"
)
print
(
"
2.3 Send email to all ASSOCIATES reminding them to renew
"
)
print
(
"
0. Return to main menu
"
)
option
=
input
(
"
Option:
"
)
if
option
==
"
1
"
:
for
student
in
studentsBad
:
print
(
str
(
student
[
0
])
+
"
because the DB says
:
"
+
str
(
student
[
1
]))
print
(
str
(
student
[
0
])
+
"
last paid
:
"
+
str
(
student
[
1
]))
for
soc
in
societiesBad
:
print
(
str
(
soc
[
0
])
+
"
because the DB says
:
"
+
str
(
soc
[
1
]))
print
(
str
(
soc
[
0
])
+
"
last paid
:
"
+
str
(
soc
[
1
]))
for
ass
in
associatesBad
:
print
(
str
(
ass
[
0
])
+
"
because the DB says
:
"
+
str
(
ass
[
1
]))
print
(
str
(
ass
[
0
])
+
"
last paid
:
"
+
str
(
ass
[
1
]))
reminderMenu
()
if
option
==
"
2
"
:
if
len
(
studentsBad
)
>
0
:
...
...
@@ -394,6 +396,12 @@ def reminderMenu():
if
option
==
"
2.1
"
:
if
len
(
studentsBad
)
>
0
:
sendReminderEmail
(
studentsBad
)
if
option
==
"
2.2
"
:
if
len
(
societiesBad
)
>
0
:
sendReminderEmail
(
societiesBad
)
if
option
==
"
2.3
"
:
if
len
(
associatesBad
)
>
0
:
sendReminderEmail
(
associatesBad
)
if
option
==
"
0
"
:
mainMenu
()
else
:
...
...
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