dépôts
/
cavote.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6635ea
)
fix hard coded vote url
author
Julien Moutinho
<julm@autogeree.net>
Fri, 8 Aug 2014 05:17:19 +0000
(07:17 +0200)
committer
Julien Moutinho
<julm+cavote@autogeree.net>
Mon, 25 Aug 2014 09:42:32 +0000
(11:42 +0200)
reminder.py
patch
|
blob
|
history
diff --git
a/reminder.py
b/reminder.py
index
d867ee8
..
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
- link =
"http://vote.ffdn.org/vote/%d"
% vote[0]
+ link =
VOTE_URL
% vote[0]
BODY = string.join((
"From: %s" % EMAIL,
"To: %s" % user[1],
@@
-60,7
+60,7
@@
for vote in c.execute('select id, id_group, date_end, title from votes where is_
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],