suppression des dates en double

This commit is contained in:
Jean-Marie Favreau 2024-04-20 00:13:05 +02:00
parent 995aa4b2d3
commit 909b73d729

View File

@ -85,7 +85,7 @@ class LaComedieExtractor(TwoStepsExtractor):
dates = json5.loads(content)["data"][0]
url = self.url.split("?")[0]
for d in dates:
for d in list(set(dates)):
if not self.only_future or self.now <= datetime.date.fromisoformat(d):
events = self.downloader.get_content(url, post={'action': "load_evenements_jour", "jour": d})
if events: