Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sucs
accountmanager
Commits
580c9c0e
Commit
580c9c0e
authored
Mar 10, 2019
by
Imran Hussain
Browse files
Don't ask people who've asked to be deleted to renew
parent
f181ddce
Changes
1
Hide whitespace changes
Inline
Side-by-side
sucsam.py
View file @
580c9c0e
...
...
@@ -56,6 +56,11 @@ def stripFuturePeople(listofpeeps):
# then from that find the right email text file and send
# easy peasy
def
sendReminderEmail
(
listofpeeps
):
# if somenes been marked as delete, don't remind them to renew
for
person
in
listofpeeps
:
if
person
[
1
]
==
"delete"
:
listofpeeps
.
remove
(
person
)
for
person
in
listofpeeps
:
cur
=
DBconn
.
cursor
()
cur
.
execute
(
"SELECT * from members WHERE username=%(user)s"
,{
"user"
:
person
[
0
]})
...
...
Write
Preview
Supports
Markdown
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