[SUCS Devel] [Git][sucs/accountmanager][master] Don't ask people who've asked to be deleted to renew
Imran Hussain
imranh at sucs.org
Sun Mar 10 14:49:21 GMT 2019
Imran Hussain pushed to branch master at sucs / accountmanager
Commits:
580c9c0e by Imran Hussain at 2019-03-10T14:49:01Z
Don't ask people who've asked to be deleted to renew
- - - - -
1 changed file:
- sucsam.py
Changes:
=====================================
sucsam.py
=====================================
@@ -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]})
View it on GitLab: https://projects.sucs.org/sucs/accountmanager/commit/580c9c0ea6e9d0425c178c6d3224e062a52792ad
--
View it on GitLab: https://projects.sucs.org/sucs/accountmanager/commit/580c9c0ea6e9d0425c178c6d3224e062a52792ad
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20190310/57f9065a/attachment.html>
More information about the Devel
mailing list