suppression des dates en double
This commit is contained in:
parent
995aa4b2d3
commit
909b73d729
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user