dépôts
/
cavote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add comments support
[cavote.git]
/
reminder.py
diff --git
a/reminder.py
b/reminder.py
index
6be8643
..
7b7c07f
100644
(file)
--- a/
reminder.py
+++ b/
reminder.py
@@
-36,7
+36,7
@@
for vote in c.execute('select id, id_group, date_end, title from votes where is_
print userchoice
if userchoice is None:
#user didn't vote yet
print userchoice
if userchoice is None:
#user didn't vote yet
- link =
"http://vote.ffdn.org/vote/%d"
% vote[0]
+ link =
VOTE_URL
% vote[0]
BODY = string.join((
"From: %s" % EMAIL,
"To: %s" % user[1],
BODY = string.join((
"From: %s" % EMAIL,
"To: %s" % user[1],
@@
-56,11
+56,11
@@
for vote in c.execute('select id, id_group, date_end, title from votes where is_
server = smtplib.SMTP(SMTP_SERVER)
print EMAIL
print user[1]
server = smtplib.SMTP(SMTP_SERVER)
print EMAIL
print user[1]
- print BODY
+ print BODY
.encode('utf-8')
server.sendmail(EMAIL, user[1], BODY.encode('utf-8'))
server.quit()
else:
server.sendmail(EMAIL, user[1], BODY.encode('utf-8'))
server.quit()
else:
- link =
"http://vote.ffdn.org/vote/%d"
% vote[0]
+ link =
VOTE_URL
% vote[0]
BODY = string.join((
"From: %s" % EMAIL,
"To: %s" % user[1],
BODY = string.join((
"From: %s" % EMAIL,
"To: %s" % user[1],
@@
-80,6
+80,6
@@
for vote in c.execute('select id, id_group, date_end, title from votes where is_
server = smtplib.SMTP(SMTP_SERVER)
print EMAIL
print user[1]
server = smtplib.SMTP(SMTP_SERVER)
print EMAIL
print user[1]
- print BODY
+ print BODY
.encode('utf-8')
server.sendmail(EMAIL, user[1], BODY.encode('utf-8'))
server.quit()
server.sendmail(EMAIL, user[1], BODY.encode('utf-8'))
server.quit()