Remove quote
This commit is contained in:
parent
ecf4c95aa0
commit
f0284c50a9
2 changed files with 1 additions and 32 deletions
|
|
@ -183,35 +183,13 @@
|
|||
</tr>
|
||||
<!-- COPY -->
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" align="center" style="padding: 0px 30px 20px 30px; color: #808980; font-size: 13px; font-weight: 400; text-align: center;">
|
||||
<td bgcolor="#ffffff" align="center" style="padding: 0px 30px 20px 30px; color: #808980; font-size: 13px; font-weight: 400; text-align: center; border-radius: 0px 0px 20px 20px;">
|
||||
<h3>Semaine prochaine</h3>
|
||||
<table style="width: 100%;">
|
||||
{EVENTS_NEXT}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- QUOTE -->
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" align="left" style="border-radius: 0px 0px 20px 20px;">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" style="padding: 10px 30px 40px 30px;">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="100%" align="center" style="font-size: 13px; color: #2a2f34; text-decoration: none; display: inline-block; text-align: center; margin-bottom: 3px;"><i>Citation de la semaine</i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 16px; color: #2a2f34; text-decoration: none; padding: 12px 16px; border-radius: 10px; border: 1px solid #dce0e3; display: inline-block; text-align: left;" bgcolor="#fff">
|
||||
<i>{Quote_Text}</i><br />
|
||||
— {Quote_Author}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!--[if (gte mso 9)|(IE)]>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ from email.mime.text import MIMEText
|
|||
from smtplib import SMTP_SSL
|
||||
from argparse import ArgumentParser
|
||||
from datetime import date, timedelta
|
||||
import wikiquote
|
||||
import os
|
||||
|
||||
from event import create_events_from_span
|
||||
|
|
@ -95,10 +94,6 @@ def create_html_templated(events_previous, events_current, events_next):
|
|||
mail = mail.replace('{EVENTS_CURRENT}', create_html_string_for_week(events_current))
|
||||
mail = mail.replace('{EVENTS_NEXT}', create_html_string_for_week(events_next))
|
||||
|
||||
quote = wikiquote.qotd(lang='fr')
|
||||
mail = mail.replace('{Quote_Text}', quote[0])
|
||||
mail = mail.replace('{Quote_Author}', quote[1])
|
||||
|
||||
return mail
|
||||
|
||||
|
||||
|
|
@ -118,10 +113,6 @@ def create_plain_email(events_previous, events_current, events_next):
|
|||
mail_plain += create_plain_string_for_week(events_next)
|
||||
mail_plain += '\n\n'
|
||||
|
||||
quote = wikiquote.qotd(lang='fr')
|
||||
mail_plain += 'Citation de la semaine :\n'
|
||||
mail_plain += quote[0] + '\n'
|
||||
mail_plain += f'— {quote[1]}\n\n'
|
||||
mail_plain += 'Cet email vous est envoyé par Cyril NOVEL parce que vous êtes inscrit sur la ' \
|
||||
'liste de diffusion de la Paturlettre.\n'
|
||||
mail_plain += 'Des questions ou des commentaires ? Envoyez un email à paturlettre@kosmon.fr\n'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue