mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Unescape HTML, make announcement task run every 10 min instead of every 30
This commit is contained in:
parent
4477ec6c0b
commit
1979703194
2 changed files with 3 additions and 2 deletions
|
|
@ -2,6 +2,7 @@ from datetime import datetime, timedelta
|
|||
from discord import Embed, Colour
|
||||
from functions.stringFormatters import leadingZero as lz
|
||||
from functions.timeFormatters import intToWeekday
|
||||
from html import unescape
|
||||
import pytz
|
||||
import re
|
||||
|
||||
|
|
@ -78,7 +79,7 @@ class UforaNotification:
|
|||
text = text.replace(key, value)
|
||||
|
||||
# Remove HTML tags
|
||||
return re.sub(r"<[^>]*>", "", text)
|
||||
return unescape(re.sub(r"<[^>]*>", "", text))
|
||||
|
||||
def _get_published(self):
|
||||
time_string = "%a, %d %b %Y %H:%M:%S %Z"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue