diff --git a/main.py b/main.py index 4380aec..080aba9 100644 --- a/main.py +++ b/main.py @@ -112,6 +112,8 @@ async def stop( def get_delai(heure_passage: str) -> str: dt = datetime.strptime(heure_passage, "%Y-%m-%d %H:%M:%S") now = datetime.now() + if now > dt: + return "Proche" delai = dt - now minutes = delai.seconds // 60 if minutes <= 0: