Commit 580c9c0e authored by Imran Hussain's avatar Imran Hussain
Browse files

Don't ask people who've asked to be deleted to renew

parent f181ddce
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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]})