From 9392cfdd09ffb0b7816cba3a5b4c5a86e5156e38 Mon Sep 17 00:00:00 2001
From: Luc Pellissier <luc.pellissier@inria.fr>
Date: Sun, 9 Jun 2024 20:31:45 +0200
Subject: [PATCH] Date marche

---
 Attrap_pref75.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Attrap_pref75.py b/Attrap_pref75.py
index b35823d..0ebcc4a 100644
--- a/Attrap_pref75.py
+++ b/Attrap_pref75.py
@@ -95,9 +95,9 @@ class Attrap_pref75(Attrap):
                     url = a['href']
                 url = unquote(url)
                 name = a.find('span')
-                guessed = Attrap.guess_date(a.get('href'),"([0-9]+.[0-9]+.[0-9]+)")"([0-9]+.[0-9]+.[0-9]+)")
-                print(guessed)
-                date = datetime.datetime.strptime(guessed, '%d.%m.%Y')
+                quasidate = a.get('href')
+                guessed = Attrap.guess_date(quasidate,"([0-9]+\.[0-9]+\.[0-9]+)")
+                date = guessed
 
                 raa = Attrap.RAA(url, date, name)
                 elements.append(raa)
-- 
GitLab